[asterisk-users] Conditional branching

bails bails at westcomuk.com
Tue Aug 8 00:46:14 MST 2006


Doug Lytle wrote:
> 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
> 
> 
> 
Thanks Doug that works a treat, however as i've "just taken the fish", 
is there anywhere that'll "teach me to fish", ie any good tutorials out 
there for varaibles and asterisk?

Thanks

Bails



More information about the asterisk-users mailing list