Quote:
Originally Posted by chaley
IIRC a book can have at most one mark. In this case you should use == instead of 'in', because == is much faster. You could also rewrite the if/then to get rid of it.
Example:
Code:
program:
m = is_marked();
switch_if(
'reading_list_send_to_device' == m, 'sync.png',
'reading_list_to_be_read' == m, 'list.png',
'fff' == m, 'download-metadata.png',
m, 'marked.png',
''
)
|
Here's the slight problem with that (applies to all three listed):