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

2013-01-11 Thread penguin
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 = _,1,answer() same= n,Set($[${a}==1]?true:false] --double equal sign same = n(true),Goto(main,s,1) same= n(false),

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

2013-01-11 Thread A J Stiles
On Friday 11 January 2013, penguin wrote: 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 = _,1,answer() same= n,Set($[${a}==1]?true:false] --double equal sign same

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

2013-01-11 Thread jon pounder
On 01/11/2013 12:20 PM, A J Stiles wrote: I try to write comparisons as != where possible and then there is no confusion and less mistakes possible. Most compilers will warn on the example below now. On Friday 11 January 2013, penguin wrote: quick question that leaves alittle confusion

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

2013-01-11 Thread Steve Edwards
On Fri, 11 Jan 2013, jon pounder wrote: I try to write comparisons as != where possible and then there is no confusion and less mistakes possible. Most compilers will warn on the example below now. Or you can write comparisons as 'constant operator variable' like: if (0 ==

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

2013-01-11 Thread Eric Wieling
In Asterisk extensions.conf and extensions.ael inside $[] = and == are the same comparison operator. I can't quote where I saw this, but it has been documented somewhere. The == was added to make things more programmer friendly. -Original Message- From: