What does "X" represent? Is it a placeholder? Are you simply checking if it has a value associated with it? If so you can use a conditional block.
Otherwise you can write an IF statement using RQL. <reddot:cms> <if> <query valuea="" operator="==" valueb="Bool:True"> <htmltext>It was true</htmltext> </query> <query type="else"> <htmltext>It was false</htmltext> </query> </if> </reddot:cms> On Wednesday, April 2, 2014 12:06:34 PM UTC-5, Amit bhardwaj wrote: > > Hi Tim, > Thanks for your reply, i dont want to store just write and display > > > On Mon, Mar 31, 2014 at 10:26 PM, Tim D <[email protected]<javascript:> > > wrote: > >> Do you really need to store or can you conditionally just write the >> string you want? >> >> >> On Monday, March 31, 2014 12:07:37 PM UTC-4, Tim D wrote: >>> >>> A custom render tag is the best solution. https://knowledge. >>> opentext.com/knowledge/cs.dll/open/32102516 >>> >>> The Store rendertag and the option to use pre-execution can fail on >>> special characters. >>> >>> >>> Best, >>> Tim Davis >>> >>> On Friday, March 28, 2014 4:36:41 AM UTC-4, [email protected] wrote: >>>> >>>> Hi All, >>>> I need a help in declaring String variable in page template >>>> >>>> My scenario will like this >>>> 1. declare variable say x >>>> 2. if (true) >>>> >>>> x="First String" >>>> >>>> else >>>> >>>> x= "Second String" >>>> >>>> 3. Print value of x >>>> >>> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "RedDot CMS Users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/reddot-cms-users/n7Rhvc-AJIo/unsubscribe >> . >> To unsubscribe from this group and all its topics, send an email to >> [email protected] <javascript:>. >> To post to this group, send email to >> [email protected]<javascript:> >> . >> Visit this group at http://groups.google.com/group/reddot-cms-users. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/reddot-cms-users. For more options, visit https://groups.google.com/d/optout.
