User Tools

Site Tools


if_expressions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
if_expressions [2020/02/17 09:25] – created adminzif_expressions [2020/02/17 11:27] (current) adminz
Line 11: Line 11:
     Display "This is a test#";     Display "This is a test#";
         If 44 ++ >> >> <= JoystickUp  << << | 44 Goto BreakOut;        // If 11 <= 44         If 44 ++ >> >> <= JoystickUp  << << | 44 Goto BreakOut;        // If 11 <= 44
-        If 0x23 <= JoystickUp | RegF Goto BreakOut;                    // If 35 <= ( 1 RegF ) +        If 0x23 <= JoystickUp | RegF Goto BreakOut;                    // If 35 <= ( 1 OR RegF ) 
-        IF 1 == 3 Goto BreakOut;                                       // If 1 == 3  +        IF 1 == 3 Goto BreakOut;  
-        IF REG0 >= 11 Goto BreakOut;                                   // If Reg0 >= 11  +        IF REG0 >= 11 Goto BreakOut; 
-        IF REGA == REG2 Goto BreakOut;                                 // If RegA == Reg2 +        IF REGA == REG2 Goto BreakOut; 
-        IF ~REG0 == REG5 >> 2 Goto BreakOut;                           // If 1 == 3  +        IF ~REG0 == REG5 >> 2 Goto BreakOut; 
-        IF REG1 >> 2 >= REGA ~ ~ >> ~ << Goto BreakOut;                // If 1 == 3  +        IF REG1 >> 2 >= REGA ~ ~ >> ~ << Goto BreakOut; 
-        IF ~45 ++ << > 56 ++ << ~ Goto BreakOut;                       // If 1 == 3  +        IF ~45 ++ << > 56 ++ << ~ Goto BreakOut;                        
-        If REGA & Value2 ++  <= JoystickUp | RegF << 4 Goto BreakOut;  // If 1 == 3 +        If REGA & Value2 ++  <= JoystickUp | RegF << 4 Goto BreakOut;  
          
     :BreakOut     :BreakOut
     Display "Test Over";     Display "Test Over";
 </code> </code>
 +
 +Be sure not to get too crazy when creating ''If'' statements.  There is a limit to how complicated an expression can be and you might create something that will execute incorrectly or in a unexpected manner on the 9010A.
 +
if_expressions.1581953121.txt.gz · Last modified: 2020/02/17 09:25 by adminz