View Single Post
Old 01-06-2014, 01:21 AM   #425
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
For that list alone, the following would work:
Code:
{tags:switch(Dragons,SFF/UF/PNR,Dwarves,SFF/UF/PNR,dystopian,SFF/UF/PNR,elves,SFF/UF/PNR,faeries,SFF/UF/PNR,Fairy Tales,SFF/UF/PNR,Fantasy,SFF/UF/PNR,Fantasy & Magic,SFF/UF/PNR,futuristic,SFF/UF/PNR,Gods,SFF/UF/PNR,Hard Science Fiction,SFF/UF/PNR,Hobbits,SFF/UF/PNR,Horror,SFF/UF/PNR,Horror Tales,SFF/UF/PNR,magic,SFF/UF/PNR,Magic & Wizards,SFF/UF/PNR,orcs,SFF/UF/PNR,paranormal,SFF/UF/PNR,psychic ability,SFF/UF/PNR,Science Fiction,SFF/UF/PNR,Sci Fi,SFF/UF/PNR,sci-fi,SFF/UF/PNR,Science Fiction & Fantasy,SFF/UF/PNR,shifters,SFF/UF/PNR,Space Opera,SFF/UF/PNR,Star Trek,SFF/UF/PNR,Urban Fantasy,SFF/UF/PNR,Vampires,SFF/UF/PNR,Witches & Wizards,SFF/UF/PNR,zombies,SFF/UF/PNR,)}
Obviously, we will need to fill in more pattern,value pairs for the rest.

If tag exists, #collection will be equal to "SFF/UF/PNR", if not, the last field is blank (see how it ends in a "," and nothingness follows the ","?) so no value will be used from this template chunk. Note also that it will be satisfied with finding the first tag, if there are multiple matching tags ONLY the first one in the switch() list will be used.
eschwartz is offline   Reply With Quote