Alan wrote in part:
> John is correct if you issue the following ISITSO will be set to TRUE.
>
> :SETVAR FALSE "TRUE"
> :SETVAR ISITSO,FALSE
> :SHOWVAR ISITSO
> ISITSO = TRUE
>
> Although I am ready to be corrected I believe the syntax for SETVAR is
> that SETVAR X,Y sets the value of variable X to the value of
> variable Y,
> whereas SETVAR X "Y" set variable X to the value X.
>
> Therefore I believe that you have a variable called FALSE that has a
> value of "TRUE". Possibly SETVAR ISITSO "FALSE" may do the trick.
MGR.DVL:SETVAR ISITSO "FALSE"
MGR.DVL:SHOWVAR ISITSO
ISITSO = FALSE
MGR.DVL:IF ISITSO THEN
^
A non-Boolean expression was found. (CIERR 9940)
So setting ISITSO to "TRUE" changes it's type to string.
The best solution I've found so far is:
:setvar isitso 1=2
:showvar isitso
ISITSO = FALSE
but...
:setvar true false
:setvar isitso ![1=2]
:showvar isitso
ISITSO = TRUE
I'm still looking for a more direct approach.
Tried using combinations of setvar true {logical operator like xor}
bound(true)
but could not get anything to work consistently to yield a Boolean false
value.
-Dave