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
John,
It seems to me like you should reverse your TRUE and FALSE values.
Bill
On Monday, August 15, 2011, 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
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
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.
Steve,
It’s true that browsers have limiters to prevent infinite redirect loops.
How are you handling the redirect? Which method?
Robert
From: Fogelson, Steve [mailto:stevefogel...@askics.net]
Sent: Sunday, August 14, 2011 10:54 PM
To: Witango-Talk@witango.com
Subject: Witango-Talk:
I meant:
...
} else {
server.assignVariable('tmpFlag','0');
}
...
On Mon, Aug 15, 2011 at 11:45 AM, Anthony Humphreys
anth...@humphreys.orgwrote:
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
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
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
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,
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
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
We also ran into issues with browsers just timing out with extended redirect or
also loop sessions. There is a cure, and once you get set up to use it, you
can run huge numbers of actions over and over again, with no time-outs.
This is what I think of as the volleyball method.
1] Get a set of
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:
HTTP/1.0 302 Moved@crlfLocation: @var method$URL
encoding=meta@crlf@setcookies@userreferencecookie@crlf@crlf
From: Robert Shubert [mailto:rshub...@tronics.com]
Sent: Monday, August 15, 2011 10:37 AM
To: Witango-Talk@witango.com
Subject: RE: Witango-Talk: Re-Directs
Steve,
It’s true that
Steve,
Dale’s post is very thorough and you should review it.
But I will say that using the META HTTP-EQUIV=REFRESH CONTENT=0;
URL=@APPFILE method should avoid the redirect loop catch.
Also, you mentioned using this in a cron job, in that case there is no browser
so both the 302 Moved
We are pleased to announce that TeraScribe 6.1 and TeraScript Server 6.1
have been released for all platforms.
TeraScribe 6.1 will address more than 45 customer requests and bug reports
and will provide a noticeable improvement in stability and user experience.
Please visit TeraScript.com to
16 matches
Mail list logo