I am using RedDot 7.5. I want to setup a RQL If statement like below.
But I was wondering if I could a Case statement instead. Does RQL Case
statement exist?
<reddot:cms>
<if>
<query valuea="<%opt_Num%>" operator="==" valueb="1">
<htmltext>
<h1><%hdl_Title%></h1>
</htmltext>
</query>
<query valuea="<%opt_Num%>" operator="==" valueb="2">
<htmltext>
<h2><%hdl_Title%></h2>
</htmltext>
</query>
<query valuea="<%opt_Num%>" operator="==" valueb="3">
<htmltext>
<h3><%hdl_Title%></h3>
</htmltext>
</query>
<query valuea="<%opt_Num%>" operator="==" valueb="4">
<htmltext>
<h4><%hdl_Title%></h4>
</htmltext>
</query>
</if>
</reddot:cms>
Is this possible?
<reddot:cms>
case [<%opt_Num%>]
when 1 then <h1><%hdl_Title%></h1>
when 2 then <h2><%hdl_Title%></h2>
when 3 then <h3><%hdl_Title%></h3>
when 4 then <h4><%hdl_Title%></h4>
end
</reddot:cms>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"RedDot CMS Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/RedDot-CMS-Users?hl=en
-~----------~----~----~----~------~----~------~--~---