View Single Post
Old 04-26-2022, 05:09 PM   #382
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
$#kobostatus is enumerated. I use the template to semi-automatically generate/update it during certain action chains.
In that case, because it can have only one value using '== is better for performance than 'in'. As in
Code:
    elif '[Kobo Store]' == $#kobostatus then '[Kobo Store]'
But this only matters if this is a custom column template. In an action chain the small performance difference doesn't matter as it seldom runs.

I suggest you go with the code you understand.
chaley is offline   Reply With Quote