I have a parameter _L2R, set to either 1 or 0.
(txt,L2Rtxt,Neither)
(print,$<L2Rtxt>)
(print,#<_L2R>)
if [#<_L2R> EQ 1] then (txt,L2Rtxt,Yes)
if [#<_L2R> EQ 0] then (txt,L2Rtxt,No)
(print,#<_L2R>)
(print,$<L2Rtxt>)
displays the following:
Neither
1
1
No
So the L2Rtxt parameter is being set correctly to "Neither" originally; _L2R is set to 1 originally.
The first if statement should then set L2Rtxt to "Yes"
The second if statement should not do anything...but it's setting L2Rtxt to "No"
Why?