Bruce Nik wrote:
> Hello everyone,
> 
> The first statement seems to work and jumps to the right
> context. The second statement yields 0 and always jumps to
> "true" (which is odd). Can anyone please tell me whats wrong here?
> 
> Version 1:                         exten => s,n,GotoIf,($[20 <
> 10]?true:false) 
> 
> Version 2:                         exten =>
> s,n,GotoIf,($[${variableA} < 10]?true:false)
> 
> Version two is run under a MATH condition where variableA is
> returned as an integer bigger than 10. I can see the output
> to be 0 (being false) and yet the jump is gone to "true" context.

Throw in a Noop(${variableA}) in so you can visually confirm the variable
contains an integer. Then just for good measure toss in a
Noop($[${variableA} < 10]) to make sure you get either 0 or 1 back. If
VariableA is null (or undefined) you may need to explicitly set the value of
the variable to "0" before running the Gotoif. 

Jim




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to