A simple true=1;false=0 should suffice for clarity.

--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


________________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of 
Rupert Reynolds <[email protected]>
Sent: Sunday, September 6, 2020 12:43 PM
To: [email protected]
Subject: Re: REXX true/false (was Constant Identifiers)

I don't see any advantage in 'Y', because then you have to code IF or WHEN
variable = 'Y'.

The advantage of Boolean is clarity in something like:-
/* Rexx */
TRUE = (1=1)
...
SELECT
  WHEN logmode = "D4A32782" & (GotASCII & GotVBMrecord) THEN do

(from a similar exec I found in archives, not the same one)

The disadvantage is that it looks and works like a constant, but it's a
variable.

Rupert

On Sun, 6 Sep 2020 at 17:03, scott Ford <[email protected]> wrote:

> I have done things like true =‘Y’ and then
>
> If true
>   ..........
> end
>
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to