In a case like this, where @IF is not precise enough, I would bring that into JavaScript and let it do a string comparison, ie something *like *this:
<@ASSIGN tmpVar <@ARG theValue>> <@SCRIPT> var strTheValue = server.GetVariable('tmpVar'); if (strTheValue == '00') { server.assignVariable('tmpFlag','1'); } else { server.assignVariable('tmpFlag','1'); } </@SCRIPT> <@IF @@tmpFlag>.... On Mon, Aug 15, 2011 at 9:54 AM, WebDude <webd...@cipromo.com> wrote: > ** > This has never come up before and I know it's probably a stupid question, > but I am trying to write an IF statement where I need to compare characters > rather then numbers. I went through the manual and I am a bit confused. I > thought that if you used single quotes, it would look at the expression as a > character compare rather then a numeric compare. For example... > > <@IF EXPR="'00000 = '0'" TRUE ="They really are not the same - one has a > lot more zeros then the other" FALSE="They are the same"> > > I have a client who has numeric codes that can start with multiple zeros > and I need to be able to get a true or false depending on the actual > characters rather then the numeric value. > > 00000 = 0 would then be false. > > Probably a stupid fix, I just cannot see it. By the way, the <@IFEQUAL> tag > evaluates the same way. I need a string comparison rather the numeric. > > Any help would be appreciated. > > Thanks! > > John M. > > > > ** > > > ------------------------------ > To unsubscribe from this list, please send an email to > lists...@witango.com with "unsubscribe witango-talk" in the body. ---------------------------------------- To unsubscribe from this list, please send an email to lists...@witango.com with "unsubscribe witango-talk" in the body.