Quote:
Originally Posted by da prez
i wrote a simple query that returns a numeric value or 1, 2, or 3 etc.
what i want to do is use this variable to make a conditional.
$string6 is my variable and it does return proper #
can i use this variable in a conditional within a template to do something like this ??
example:
Code:
<if $string6="1">Hello</if>
<if $string6="2">Goodbye</if>
how would i go about it ?
i have a shoutcast radio station up,
and based on which dj is online i want to show diff info.
|
yes, you can use $string6 (allthough I would rename it so that you know what's in it, if you edit the code again in a few month's time...)
Try this:
<if condition="$string6==1">Hello
<else />
<if condition="$string6==2">Goodbye
</if>
</if>