I tried this, but the macro breaks down when trying:
I get Unparsable in Calculation: 'O'
And something about non-numeric in "/if (on == on)". I do not see what is wrong. /if (on == on) is not wrong, as far as I can see?
Sub Bind_Bam(string Command, string onoff)
/if (${Defined[Command]}) {
/declare valBool bool local
/if (${onoff} == on) {
/varset valBool true
} else {
/varset valBool false
/varset onoff off
}
/varset ${Command} ${valBool}
/echo ${Command} is \agon\ax.
}
/return
I get Unparsable in Calculation: 'O'
And something about non-numeric in "/if (on == on)". I do not see what is wrong. /if (on == on) is not wrong, as far as I can see?