|
uCoz Community uCoz Modules Additional Features Specify more than 2 Category ID's (in conditional operators) |
Specify more than 2 Category ID's |
I want make an if statement using category id's but I want to add multiple CID's, is this possible, if so how would I go about doing this?
Here's the start of the if statement... Code <?if($CID$=='8')?> For me to add multiple CID's would I write it like this? Code <?if($CID$=='8''9''10''11''12')?> Post edited by XO-Ferg - Sunday, 2013-01-20, 11:00 PM
|
Ok so I have this code:
Code <?if($FILE_URL$ || $RFILE_URL$ && $CID$='1'||'2'||'3'||'6'||'7')?><audio src="$RFILE_DIRECT_URL$ $FILE_DIRECT_URL$" preload="auto" /><?endif?> But even when I post an entry where file_url or rfile_url aren't filled in it still displays the audio player. |
XO-Ferg,
Code <?if($FILE_URL$ || $RFILE_URL$)?><?if($CID$=='1' or $CID$=='2'or $CID$=='3or $CID$=='6' or $CID$=='7')?><audio src="$RFILE_DIRECT_URL$ $FILE_DIRECT_URL$" preload="auto" /><?endif?><?endif?> Jack of all trades in development, design, strategy.
Working as a Support Engineer. Been here for 13 years and counting. |
| |||
| |||