• 0 Vote(s) - 0 Average
• 1
• 2
• 3
• 4
• 5
 Testing a variable within a range RandomiserUsr Member Posts: 65 Threads: 19 Joined: Feb 2021 Reputation: 0 03-25-2022, 09:59 PM (This post was last modified: 03-25-2022, 11:50 PM by boriel.) (03-14-2022, 09:49 AM)boriel Wrote: Just for the record (as someone else might find this thread useful): Code:`IF/ELSEIF .. THEN `does not require END IF, however Code:```THEN   END IF : REM required```THEN at the end of line starts a block which must be closed with END IF. In the later case you're using Code:```ELSEIF X = 2 THEN IF T<10 THEN   X = 3 END IF```And this is OK, but the END IF if closing the IF T < 10 condition (the ELSEIF ... THEN if followed by such IF, not by an End Of Line, hence no END IF is needed to close it). Okay- I have revisited the code again and is compiling as normal, I have no idea what happened. Thanks again Boriel « Next Oldest | Next Newest »

 Messages In This Thread Testing a variable within a range - by worcestersource - 01-27-2022, 08:14 PM RE: Testing a variable within a range - by boriel - 01-28-2022, 11:19 AM RE: Testing a variable within a range - by worcestersource - 02-03-2022, 10:48 PM RE: Testing a variable within a range - by worcestersource - 02-06-2022, 10:37 PM RE: Testing a variable within a range - by RandomiserUsr - 03-12-2022, 10:02 AM RE: Testing a variable within a range - by RandomiserUsr - 03-12-2022, 11:06 AM RE: Testing a variable within a range - by worcestersource - 03-13-2022, 05:45 PM 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 worcestersource - 03-14-2022, 09:21 AM RE: Testing a variable within a range - by boriel - 03-14-2022, 09:49 AM RE: Testing a variable within a range - by RandomiserUsr - 03-25-2022, 09:59 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)