Here are the three rules I was trying to replace:
What I was trying to do, using boolean search syntax in place of the template:
Code:
if #onkobo:no, then 'sync.png'
else
if #onkobo:yes, then
if #kobocoll:"=Kobo Store" then 'drm-locked.png'
else 'reader.png'
Even with the missing fi added, I messed up the template a bit as it instead returns reader.png for everything.