[Thread Prev][Thread Next][Index]

control flow



It is possible to test in the following way:

let ivar="Temp"

if `ivar eq "Temp"` then
say "hello"
elif `ivar eq "Salt"` then
say "there"
else
say "you"
endif

However, is it possible to test with compound arguments, for example:

if `ivar eq "Temp"` OR `ivar eq "Salt"` then
say "hello"
else
say "there"
endif

Anyone have a solution? I've tried a number of combinations, including using ()'s without success.

Many thanks,
Mark.


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement