Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Testing a variable within a range
#7
The first expression is ok, and it works for me:
Code:
X = 2
T = 9
IF X=1 THEN
    X=2
ELSEIF X=2 AND T< 10 THEN
   X=3
END IF

PRINT X
This will print "3" as expected.

What problem are you having in the first case? Can you elaborate further, please?
Also, can you report which compiler version are you using?
Reply


Messages In This Thread
RE: Testing a variable within a range - by boriel - 01-28-2022, 11:19 AM
RE: Testing a variable within a range - by boriel - 03-13-2022, 11:38 AM
RE: Testing a variable within a range - by boriel - 03-14-2022, 08:50 AM
RE: Testing a variable within a range - by boriel - 03-14-2022, 09:49 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)