Linda-- >From your code it looks like the file size information comes from a RedDot placehodler. They are strings and I do not believe you can just cast it. When in doubt, you can always convert a string to number. The following shows you how to get it done in VBScript:
<!IoRangePreExecute> <% Dim strFileSize:strFileSize="<%att_FileSize%>" Dim numFileSize:numFileSize=CInt(strFileSize) %> <!/IoRangePreExecute> Henry Lu On Mon, Mar 9, 2009 at 3:33 PM, [email protected] < [email protected]> wrote: > > I've added "int:" to valuea and valueb but it returns the following: > [ 6.88 | 0.01 mb ] > [ 2454.23 | 2.40 mb ] > > > <reddot:cms> > <if> > <query valuea="Int:<%att_FileSize%>" operator=">=" > valueb="Int:1024"> > <htmltext> > <%att_KbfileSize%> kb > </htmltext> > </query> > <query type="else"> > <htmltext> > <%att_MbfileSize%> mb > </htmltext> > </query> > </if> > </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 -~----------~----~----~----~------~----~------~--~---
