Hi Neil,
which version are you using? In 11.0.1.642  it works just as you wrote 
(with gt or >) without the "Int:" Mark suggested. 

However, in some version it could be required to add the "Int:" to trigger 
the CMS to handle the return value of the Length property is integer.

Best,
Hilmar

Am Freitag, 12. Juni 2015 10:32:41 UTC+2 schrieb Neil:
>
> Hi
>
> I'm struggling to compare the length of a (string) text element.
>
> The following works to get a simple output, of, say, '20':
>
> Test: <%!! Escape:Text(<%txt_content%>).Length !!%> // Outputs '20'.
>
> But comparing below just outputs nothing:
>
> <reddot:cms>
>     <if>
>         <query valuea="Escape:Text(<%txt_content%>).Length" 
> operator="&gt;" valueb="Int:10">
>             <htmltext>------ Over 10 ------</htmltext>
>         </query>
>         <query type="else">
>             <htmltext>----------Less than 10---------</htmltext>
>         </query>
>     </if>
> </reddot:cms>
>
> I've tried changing the operator between '>', 'gt' and '&gt;', but no joy 
> - am I missing something obvious here?
>
> Thanks
>
> Neil
>

-- 
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 reddot-cms-users+unsubscr...@googlegroups.com.
To post to this group, send email to reddot-cms-users@googlegroups.com.
Visit this group at http://groups.google.com/group/reddot-cms-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to