Is it possible to construct more complex if-else statements in the template language? Like - if #unread and ondevice() then title red; elseif #unread and not ondevice() then green, else black? Would switch work - or does switch have to operate on a field?
I can't figure out how to make this work with the template language if-else-then operators (contains, ifempty, test...); they all seem to allow for only one condition. (I guess this kind of relates to the comment a few pages back trying to set two rules for one column...)
One other thing: I did appreciate having the link to the tutorial on the template language; might there be any way to put that back in the "advanced" rule section? (Easier than having to go look for it when I find myself needing it...)
|