[asterisk-users] Single = sign and double == sign.What is the difference and when to use the two properly?

penguin lostdoggs101 at gmail.com
Fri Jan 11 09:50:25 CST 2013


quick question that leaves alittle confusion here. Im confused on the
difference or when to use the other if i have 1 = sign or 2 == signs .. so
If i had

exten => _XXXX,1,answer()
    same=> n,Set($[${a}==1]?true:false]  <--double equal sign
    same => n(true),Goto(main,s,1)
    same=> n(false), Hangup()
would this be saying the same thing as above then?

exten => _XXXX,answer()
    same=> n,Set($[${a}=1]?true:false] <-- single equal sign

in essence wouldn't i get the same result ? im confused on the double and
single equal sign and when to use the difference of the two. Would i get
the same result in both these expressions?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130111/f8313062/attachment.htm>


More information about the asterisk-users mailing list