| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | REXX |
-=> Quoting Andrea Zaccagnini to All <=-
AZ> Hi all,
AZ>
AZ> I have a stupid REXX problem, and no text I've read can help me.
AZ> This is a wrong REXX token:
AZ>
AZ> If ((a="aa") | (a="bb")) then
AZ> ...
AZ>
AZ> but its meaning is quite obvious in other programming languages.
AZ> What's the right corresponding token?
I am just learning REXX, but you should probably be using == not =?
/**/
a = 1
aa = 2
b = 3
bb = 3
if((a == aa) | (b == bb)) then
do
if(a == aa) then
say "a="a" aa="aa
if(b == bb) then
say "b =" b "bb ="bb
end
Now, to add to the confusion, this line works,
say "b =" b "bb ="bb
but this one does not?
say "b ="b"bb ="bb
arghh! :-)
phil.crown{at}bluecafe.com
--- Blue Wave/Max v2.21a Beta
* Origin: * MacSavvy * Dallas * Mac * OS/2 * (214)250-4479 * (1:124/1208)SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809 @PATH: 124/1208 1 396/1 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.