[asterisk-users] Conditional branching

Doug Lytle support at drdos.info
Mon Aug 7 07:36:48 MST 2006


bails wrote:
> Hi all, I'm trying to set some variables absed on a mysql query, but 
> the  value i want to return is "".
>
> from everything i read i cant seem to match on it.
>
> eg.
>
> exten => _X,11,GotoIf($[${datavar1} = ""]?30:12)

How about:

exten => _X,11,GotoIf($["${datavar1}" != ""]?12:30)

Doug



-- 
 
Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."





More information about the asterisk-users mailing list