Difference between revisions of "AMOS:Bug Not AND ´&´ on ´If´ instrucctions"

From Amiga Coding
Jump to: navigation, search
(Created page with " Within an IF statement apparently not evaluated all the & (AND), and only the last run ----")
 
Line 1: Line 1:
  
 
Within an IF statement apparently not evaluated all the & (AND), and only the last run  
 
Within an IF statement apparently not evaluated all the & (AND), and only the last run  
 +
 +
Example:
 +
 +
A$=A$+"If R0>5 & R0<9 Jump B;"
 +
 +
In this statement, if R0=20 Jump to the "B" was executed and should not make the jump
 
----
 
----

Revision as of 04:53, 6 July 2016

Within an IF statement apparently not evaluated all the & (AND), and only the last run

Example:

A$=A$+"If R0>5 & R0<9 Jump B;"

In this statement, if R0=20 Jump to the "B" was executed and should not make the jump