Thread: Custom Coloring
View Single Post
Old 06-04-2011, 09:22 AM   #61
jesscat
Groupie
jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.
 
Posts: 164
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini
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...)
jesscat is offline   Reply With Quote