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.


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to