HP3000-L Archives

February 2001, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Dave Darnell <[log in to unmask]>
Reply To:
Dave Darnell <[log in to unmask]>
Date:
Tue, 20 Feb 2001 14:44:35 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (48 lines)
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

ATOM RSS1 RSS2