Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Testing a variable within a range
#6
Further to this I tried it out on an IF/THEN/ELSEIF and found it didn't like it.


e.g.
IF X=1 THEN
    X=2
ELSEIF X=2 AND T< 10 THEN
   X=3
END IF
replaced with this:

IF X=1 THEN
    X=2
ELSEIF X=2 THEN IF T< 10 THEN
   X=3
END IF

I guess it is because it is inside an ELSEIF  and gets confused as to what should be done ?
Reply


Messages In This Thread
RE: Testing a variable within a range - by boriel - 2022-01-28, 12:19 PM
RE: Testing a variable within a range - by RandomiserUsr - 2022-03-12, 12:06 PM
RE: Testing a variable within a range - by boriel - 2022-03-13, 12:38 PM
RE: Testing a variable within a range - by boriel - 2022-03-14, 09:50 AM
RE: Testing a variable within a range - by boriel - 2022-03-14, 10:49 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)