bluerobin2 wrote:
Wow! I just found out you can things like this:
IF A==0 THEN IF B==5 THEN... ETC
I'm sure that not many others thought of that..
Anyways, here is my question; how do you use AND, OR, etc in IF...THEN... statments?
Here's another way to do an if-then block statement. It involves only a single jump so it is more efficient (faster) than a gosub if-then:
lets say you want to do this:
IF A==3 OR A > 5 THEN
[block]
...
[/block]
take the opposite of all parts of the condition:
IF A!=3 AND A <=5 THEN GOTO @SKIP
code goes here
Its a little weird, but its faster (use only when speed matters).



.


But that's pretty cool!