[asterisk-users] [1.4] Comparing value of string with spaces?
Gilles
codecomplete at free.fr
Wed Mar 2 07:25:06 CST 2011
Hello
I haven't found an example on how to compare the value of a string
variable with spaces in it, and the While loop below never exits:
========== extensions.conf
exten => start,n,Set(MYVAR="Dummy value")
exten => start,n,NoOp(${MYVAR})
;BAD TOO
;exten => start,n,While(!$[${MYVAR} : "Some string"])
exten => start,n,While($[${MYVAR} != "Some string"])
exten => start,n,Set(MYVAR="Some string")
exten => start,n,EndWhile()
==========
Thank you.
More information about the asterisk-users
mailing list