I have this code, but I dont know where the bug is:
It means, if $var is 1 set $zzz to 30 otherwise to 2, but it actually assign the whole string IF(… Any help? Thank you very much.
I have this code, but I dont know where the bug is:
It means, if $var is 1 set $zzz to 30 otherwise to 2, but it actually assign the whole string IF(… Any help? Thank you very much.
I think you need
exten => 200,n,Set(zzz=$[IF($["${var}" = “1”]?“30”:“2”)])
as your one wil do as tou say just set the varible to the string
$[…] not ${…}
Your right, This proves that I do need to get my eyes tested, having failed the eyetest app on my iphone this morning…