RE: Witango-Talk: Exact Numeric Character IFs

2011-08-15 Thread WebDude
Actually, Robert... it does make a difference and I switched to your method.
These are groups of numbers like...

Thanks!


John Muldoon
Corporate Incentives
3416 Nicollet Ave S
Minneapolis, MN 55408-4552
612.822.
webd...@cipromo.com

 <http://cipromo.com/> http://cipromo.com



  _

From: Robert Shubert [mailto:rshub...@tronics.com]
Sent: Monday, August 15, 2011 11:22 AM
To: Witango-Talk@witango.com
Subject: RE: Witango-Talk: Exact Numeric Character IFs



I doubt that this would be an issue in your case, but your method using
len() doesn't force an actual string comparison, so you will still get the
incorrect response in the case of:



Value1 = 0.01

Value2 - .010



Robert



From: WebDude [mailto:webd...@cipromo.com]
Sent: Monday, August 15, 2011 12:16 PM
To: Witango-Talk@witango.com
Subject: RE: Witango-Talk: Exact Numeric Character IFs



Appreciate the help from both Robert and Anthony. I did get it to work using
Robert's method. I also came up with



<@IF EXPR="'000' = '0' AND 'len(000)' = 'len(0)'" TRUE ="true"
FALSE="false">



which seems to work for what I am trying to do.



John Muldoon

Corporate Incentives

3416 Nicollet Ave S

Minneapolis, MN 55408-4552

612.822.

webd...@cipromo.com



 <http://cipromo.com/> http://cipromo.com







  _

From: Robert Shubert [mailto:rshub...@tronics.com]
Sent: Monday, August 15, 2011 10:52 AM
To: Witango-Talk@witango.com
Subject: RE: Witango-Talk: Exact Numeric Character IFs

I have two:



Variables:



request$input1 = "00"

request$input2 = ""



<@IF expr="

'A<@VAR input1>' = 'A<@VAR input2>'

">



By placing an arbitrary letter before the variables, you will force
TeraScript to internally compare them as strings. This will be False.



OR



<@IF expr="

<@CIPHER hash md5 <@VAR input1> = <@CIPHER hash md5 <@VAR
input2>>

">



Since the MD5 hash of 0 is different from 00, this will be False. This trick
also allows you to do case sensitive string comparisons, where @IF normally
is case insensitive.



Robert



PS. Both of these short-comings are issues that should be corrected. I'll
add them to my to-do list.



From: WebDude [mailto:webd...@cipromo.com]
Sent: Monday, August 15, 2011 11:31 AM
To: Witango-Talk@witango.com
Subject: RE: Witango-Talk: Exact Numeric Character IFs



Any ideas?









  _

From: WebDude [mailto:webd...@cipromo.com]
Sent: Monday, August 15, 2011 9:39 AM
To: Witango-Talk@witango.com
Subject: RE: Witango-Talk: Exact Numeric Character IFs

This is what I need...



0 = 0 True

00 = 0 False



Simply changing the TRUE and FALSE values does not work. Both of these
equate to TRUE.



All of these equate to true too...



<@IF EXPR="'000' = '0'" TRUE ="true" FALSE="false">

<@IF EXPR="'0' = '0'" TRUE ="true" FALSE="false">

<@IF EXPR="0 = 0" TRUE ="true" FALSE="false">

<@IF EXPR="0 = 0" TRUE ="true" FALSE="false">

<@IFEQUAL "00" "">true<@ELSE>false

<@IFEQUAL "0" "0">true<@ELSE>false











  _

From: Bill Downall [mailto:bdown...@downallconsulting.com]
Sent: Monday, August 15, 2011 9:24 AM
To: Witango-Talk@witango.com
Subject: Re: Witango-Talk: Exact Numeric Character IFs

John,

It seems to me like you should reverse your TRUE and FALSE values.

Bill

On Monday, August 15, 2011, WebDude  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="'0 = '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.
>
> 0 = 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" i

Re: Witango-Talk: Exact Numeric Character IFs

2011-08-15 Thread Mark Weiss
Len, yep, thats the right one.

On Aug 15, 2011, at 9:36 AM, Mark Weiss wrote:

> You might try, counting zeros instead of comparing values or combining count 
> with another function. . You might split out the groups, I can't remember the 
> function, but it groups things and then you work with groups. i.e. 
> count(first group) compare count(second group).
>
> 000 would not equal 0
>
> Mark
>
> On Aug 15, 2011, at 9:31 AM, WebDude wrote:
>
>> Any ideas?
>>
>>
>>
>>
>> From: WebDude [mailto:webd...@cipromo.com]
>> Sent: Monday, August 15, 2011 9:39 AM
>> To: Witango-Talk@witango.com
>> Subject: RE: Witango-Talk: Exact Numeric Character IFs
>>
>> This is what I need...
>>
>> 0 = 0 True
>> 00 = 0 False
>>
>> Simply changing the TRUE and FALSE values does not work. Both of these 
>> equate to TRUE.
>>
>> All of these equate to true too...
>>
>> <@IF EXPR="'000' = '0'" TRUE ="true" FALSE="false">
>> <@IF EXPR="'0' = '0'" TRUE ="true" FALSE="false">
>> <@IF EXPR="0 = 0" TRUE ="true" FALSE="false">
>> <@IF EXPR="0 = 0" TRUE ="true" FALSE="false">
>> <@IFEQUAL "00" "">true<@ELSE>false
>> <@IFEQUAL "0" "0">true<@ELSE>false
>>
>>
>>
>>
>>
>> From: Bill Downall [mailto:bdown...@downallconsulting.com]
>> Sent: Monday, August 15, 2011 9:24 AM
>> To: Witango-Talk@witango.com
>> Subject: Re: Witango-Talk: Exact Numeric Character IFs
>>
>> John,
>>
>> It seems to me like you should reverse your TRUE and FALSE values.
>>
>> Bill
>>
>> On Monday, August 15, 2011, WebDude  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="'0 = '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.
>> >
>> > 0 = 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.
>> 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.
>
>
> 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.


Re: Witango-Talk: Exact Numeric Character IFs

2011-08-15 Thread Mark Weiss
You might try, counting zeros instead of comparing values or combining count 
with another function. . You might split out the groups, I can't remember the 
function, but it groups things and then you work with groups. i.e. count(first 
group) compare count(second group).

000 would not equal 0

Mark

On Aug 15, 2011, at 9:31 AM, WebDude wrote:

> Any ideas?
>
>
>
>
> From: WebDude [mailto:webd...@cipromo.com]
> Sent: Monday, August 15, 2011 9:39 AM
> To: Witango-Talk@witango.com
> Subject: RE: Witango-Talk: Exact Numeric Character IFs
>
> This is what I need...
>
> 0 = 0 True
> 00 = 0 False
>
> Simply changing the TRUE and FALSE values does not work. Both of these equate 
> to TRUE.
>
> All of these equate to true too...
>
> <@IF EXPR="'000' = '0'" TRUE ="true" FALSE="false">
> <@IF EXPR="'0' = '0'" TRUE ="true" FALSE="false">
> <@IF EXPR="0 = 0" TRUE ="true" FALSE="false">
> <@IF EXPR="0 = 0" TRUE ="true" FALSE="false">
> <@IFEQUAL "00" "">true<@ELSE>false
> <@IFEQUAL "0" "0">true<@ELSE>false
>
>
>
>
>
> From: Bill Downall [mailto:bdown...@downallconsulting.com]
> Sent: Monday, August 15, 2011 9:24 AM
> To: Witango-Talk@witango.com
> Subject: Re: Witango-Talk: Exact Numeric Character IFs
>
> John,
>
> It seems to me like you should reverse your TRUE and FALSE values.
>
> Bill
>
> On Monday, August 15, 2011, WebDude  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="'0 = '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.
> >
> > 0 = 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.
> 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.





To unsubscribe from this list, please send an email to lists...@witango.com 
with "unsubscribe witango-talk" in the body.


RE: Witango-Talk: Exact Numeric Character IFs

2011-08-15 Thread Robert Shubert
I doubt that this would be an issue in your case, but your method using len() 
doesn’t force an actual string comparison, so you will still get the incorrect 
response in the case of:



Value1 = 0.01

Value2 - .010



Robert



From: WebDude [mailto:webd...@cipromo.com]
Sent: Monday, August 15, 2011 12:16 PM
To: Witango-Talk@witango.com
Subject: RE: Witango-Talk: Exact Numeric Character IFs



Appreciate the help from both Robert and Anthony. I did get it to work using 
Robert's method. I also came up with



<@IF EXPR="'000' = '0' AND 'len(000)' = 'len(0)'" TRUE ="true" FALSE="false">



which seems to work for what I am trying to do.



John Muldoon

Corporate Incentives

3416 Nicollet Ave S

Minneapolis, MN 55408-4552

612.822.

webd...@cipromo.com



 <http://cipromo.com/> http://cipromo.com







  _

From: Robert Shubert [mailto:rshub...@tronics.com]
Sent: Monday, August 15, 2011 10:52 AM
To: Witango-Talk@witango.com
Subject: RE: Witango-Talk: Exact Numeric Character IFs

I have two:



Variables:



request$input1 = “00”

request$input2 = “”



<@IF expr=”

‘A<@VAR input1>’ = ‘A<@VAR input2>’

“>



By placing an arbitrary letter before the variables, you will force TeraScript 
to internally compare them as strings. This will be False.



OR



<@IF expr=”

<@CIPHER hash md5 <@VAR input1> = <@CIPHER hash md5 <@VAR 
input2>>

“>



Since the MD5 hash of 0 is different from 00, this will be False. This trick 
also allows you to do case sensitive string comparisons, where @IF normally is 
case insensitive.



Robert



PS. Both of these short-comings are issues that should be corrected. I’ll add 
them to my to-do list.



From: WebDude [mailto:webd...@cipromo.com]
Sent: Monday, August 15, 2011 11:31 AM
To: Witango-Talk@witango.com
Subject: RE: Witango-Talk: Exact Numeric Character IFs



Any ideas?









  _

From: WebDude [mailto:webd...@cipromo.com]
Sent: Monday, August 15, 2011 9:39 AM
To: Witango-Talk@witango.com
Subject: RE: Witango-Talk: Exact Numeric Character IFs

This is what I need...



0 = 0 True

00 = 0 False



Simply changing the TRUE and FALSE values does not work. Both of these equate 
to TRUE.



All of these equate to true too...



<@IF EXPR="'000' = '0'" TRUE ="true" FALSE="false">

<@IF EXPR="'0' = '0'" TRUE ="true" FALSE="false">

<@IF EXPR="0 = 0" TRUE ="true" FALSE="false">

<@IF EXPR="0 = 0" TRUE ="true" FALSE="false">

<@IFEQUAL "00" "">true<@ELSE>false

<@IFEQUAL "0" "0">true<@ELSE>false











  _

From: Bill Downall [mailto:bdown...@downallconsulting.com]
Sent: Monday, August 15, 2011 9:24 AM
To: Witango-Talk@witango.com
Subject: Re: Witango-Talk: Exact Numeric Character IFs

John,

It seems to me like you should reverse your TRUE and FALSE values.

Bill

On Monday, August 15, 2011, WebDude  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="'0 = '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.
>
> 0 = 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.

  _

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.



  _

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.





To unsubscribe from this list, please send an email to lists...@witango.com 
with "unsubscribe witango-talk" in the body.
<>

RE: Witango-Talk: Exact Numeric Character IFs

2011-08-15 Thread WebDude
Appreciate the help from both Robert and Anthony. I did get it to work using
Robert's method. I also came up with

<@IF EXPR="'000' = '0' AND 'len(000)' = 'len(0)'" TRUE ="true"
FALSE="false">

which seems to work for what I am trying to do.

John Muldoon
Corporate Incentives
3416 Nicollet Ave S
Minneapolis, MN 55408-4552
612.822.
webd...@cipromo.com

 <http://cipromo.com/> http://cipromo.com



  _

From: Robert Shubert [mailto:rshub...@tronics.com]
Sent: Monday, August 15, 2011 10:52 AM
To: Witango-Talk@witango.com
Subject: RE: Witango-Talk: Exact Numeric Character IFs



I have two:



Variables:



request$input1 = "00"

request$input2 = ""



<@IF expr="

'A<@VAR input1>' = 'A<@VAR input2>'

">



By placing an arbitrary letter before the variables, you will force
TeraScript to internally compare them as strings. This will be False.



OR



<@IF expr="

<@CIPHER hash md5 <@VAR input1> = <@CIPHER hash md5 <@VAR
input2>>

">



Since the MD5 hash of 0 is different from 00, this will be False. This trick
also allows you to do case sensitive string comparisons, where @IF normally
is case insensitive.



Robert



PS. Both of these short-comings are issues that should be corrected. I'll
add them to my to-do list.



From: WebDude [mailto:webd...@cipromo.com]
Sent: Monday, August 15, 2011 11:31 AM
To: Witango-Talk@witango.com
Subject: RE: Witango-Talk: Exact Numeric Character IFs



Any ideas?









  _

From: WebDude [mailto:webd...@cipromo.com]
Sent: Monday, August 15, 2011 9:39 AM
To: Witango-Talk@witango.com
Subject: RE: Witango-Talk: Exact Numeric Character IFs

This is what I need...



0 = 0 True

00 = 0 False



Simply changing the TRUE and FALSE values does not work. Both of these
equate to TRUE.



All of these equate to true too...



<@IF EXPR="'000' = '0'" TRUE ="true" FALSE="false">

<@IF EXPR="'0' = '0'" TRUE ="true" FALSE="false">

<@IF EXPR="0 = 0" TRUE ="true" FALSE="false">

<@IF EXPR="0 = 0" TRUE ="true" FALSE="false">

<@IFEQUAL "00" "">true<@ELSE>false

<@IFEQUAL "0" "0">true<@ELSE>false











  _

From: Bill Downall [mailto:bdown...@downallconsulting.com]
Sent: Monday, August 15, 2011 9:24 AM
To: Witango-Talk@witango.com
Subject: Re: Witango-Talk: Exact Numeric Character IFs

John,

It seems to me like you should reverse your TRUE and FALSE values.

Bill

On Monday, August 15, 2011, WebDude  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="'0 = '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.
>
> 0 = 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.

  _

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.


  _

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.
<>

RE: Witango-Talk: Exact Numeric Character IFs

2011-08-15 Thread Robert Shubert
I have two:



Variables:



request$input1 = “00”

request$input2 = “”



<@IF expr=”

‘A<@VAR input1>’ = ‘A<@VAR input2>’

“>



By placing an arbitrary letter before the variables, you will force TeraScript 
to internally compare them as strings. This will be False.



OR



<@IF expr=”

<@CIPHER hash md5 <@VAR input1> = <@CIPHER hash md5 <@VAR 
input2>>

“>



Since the MD5 hash of 0 is different from 00, this will be False. This trick 
also allows you to do case sensitive string comparisons, where @IF normally is 
case insensitive.



Robert



PS. Both of these short-comings are issues that should be corrected. I’ll add 
them to my to-do list.



From: WebDude [mailto:webd...@cipromo.com]
Sent: Monday, August 15, 2011 11:31 AM
To: Witango-Talk@witango.com
Subject: RE: Witango-Talk: Exact Numeric Character IFs



Any ideas?









  _

From: WebDude [mailto:webd...@cipromo.com]
Sent: Monday, August 15, 2011 9:39 AM
To: Witango-Talk@witango.com
Subject: RE: Witango-Talk: Exact Numeric Character IFs

This is what I need...



0 = 0 True

00 = 0 False



Simply changing the TRUE and FALSE values does not work. Both of these equate 
to TRUE.



All of these equate to true too...



<@IF EXPR="'000' = '0'" TRUE ="true" FALSE="false">

<@IF EXPR="'0' = '0'" TRUE ="true" FALSE="false">

<@IF EXPR="0 = 0" TRUE ="true" FALSE="false">

<@IF EXPR="0 = 0" TRUE ="true" FALSE="false">

<@IFEQUAL "00" "">true<@ELSE>false

<@IFEQUAL "0" "0">true<@ELSE>false











  _

From: Bill Downall [mailto:bdown...@downallconsulting.com]
Sent: Monday, August 15, 2011 9:24 AM
To: Witango-Talk@witango.com
Subject: Re: Witango-Talk: Exact Numeric Character IFs

John,

It seems to me like you should reverse your TRUE and FALSE values.

Bill

On Monday, August 15, 2011, WebDude  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="'0 = '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.
>
> 0 = 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.

  _

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.





To unsubscribe from this list, please send an email to lists...@witango.com 
with "unsubscribe witango-talk" in the body.


Re: Witango-Talk: Exact Numeric Character IFs

2011-08-15 Thread Anthony Humphreys
I meant:
...
} else {
server.assignVariable('tmpFlag','0');
}
...


On Mon, Aug 15, 2011 at 11:45 AM, Anthony Humphreys
wrote:

> 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');
> }
> 
> <@IF @@tmpFlag>
>
>
>




To unsubscribe from this list, please send an email to lists...@witango.com 
with "unsubscribe witango-talk" in the body.


Re: Witango-Talk: Exact Numeric Character IFs

2011-08-15 Thread Anthony Humphreys
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');
}

<@IF @@tmpFlag>



On Mon, Aug 15, 2011 at 9:54 AM, WebDude  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="'0 = '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.
>
> 0 = 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.


RE: Witango-Talk: Exact Numeric Character IFs

2011-08-15 Thread WebDude
Any ideas?




  _

From: WebDude [mailto:webd...@cipromo.com]
Sent: Monday, August 15, 2011 9:39 AM
To: Witango-Talk@witango.com
Subject: RE: Witango-Talk: Exact Numeric Character IFs


This is what I need...

0 = 0 True
00 = 0 False

Simply changing the TRUE and FALSE values does not work. Both of these
equate to TRUE.

All of these equate to true too...

<@IF EXPR="'000' = '0'" TRUE ="true" FALSE="false">
<@IF EXPR="'0' = '0'" TRUE ="true" FALSE="false">
<@IF EXPR="0 = 0" TRUE ="true" FALSE="false">
<@IF EXPR="0 = 0" TRUE ="true" FALSE="false">
<@IFEQUAL "00" "">true<@ELSE>false
<@IFEQUAL "0" "0">true<@ELSE>false





  _

From: Bill Downall [mailto:bdown...@downallconsulting.com]
Sent: Monday, August 15, 2011 9:24 AM
To: Witango-Talk@witango.com
Subject: Re: Witango-Talk: Exact Numeric Character IFs


John,

It seems to me like you should reverse your TRUE and FALSE values.

Bill

On Monday, August 15, 2011, WebDude  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="'0 = '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.
>
> 0 = 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.

  _

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.


RE: Witango-Talk: Exact Numeric Character IFs

2011-08-15 Thread WebDude
This is what I need...

0 = 0 True
00 = 0 False

Simply changing the TRUE and FALSE values does not work. Both of these
equate to TRUE.

All of these equate to true too...

<@IF EXPR="'000' = '0'" TRUE ="true" FALSE="false">
<@IF EXPR="'0' = '0'" TRUE ="true" FALSE="false">
<@IF EXPR="0 = 0" TRUE ="true" FALSE="false">
<@IF EXPR="0 = 0" TRUE ="true" FALSE="false">
<@IFEQUAL "00" "">true<@ELSE>false
<@IFEQUAL "0" "0">true<@ELSE>false





  _

From: Bill Downall [mailto:bdown...@downallconsulting.com]
Sent: Monday, August 15, 2011 9:24 AM
To: Witango-Talk@witango.com
Subject: Re: Witango-Talk: Exact Numeric Character IFs


John,

It seems to me like you should reverse your TRUE and FALSE values.

Bill

On Monday, August 15, 2011, WebDude  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="'0 = '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.
>
> 0 = 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.




To unsubscribe from this list, please send an email to lists...@witango.com 
with "unsubscribe witango-talk" in the body.


Re: Witango-Talk: Exact Numeric Character IFs

2011-08-15 Thread Bill Downall
John,

It seems to me like you should reverse your TRUE and FALSE values.

Bill

On Monday, August 15, 2011, WebDude  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="'0 = '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.
>
> 0 = 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.


Witango-Talk: Exact Numeric Character IFs

2011-08-15 Thread WebDude
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="'0 = '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.

0 = 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.