IF ... THEN |
IF Condition [THEN | GOTO] [Label | EXIT]
Function
Evaluate Condition and, if it is true, jump to the point in the
program designated by Label.
Explanation
IF...THEN is decision maker that affects program flow. It tests a
Condition statement and, if that statement is True, goes to a point
in the program specified by Label. The available comparison operators
are:
Comparison Operator | Definition |
= | Equal |
<> | Not Equal |
> | Greater Than |
< | Less Than |
>= | Greater Than or Equal To |
<= | Less Than or Equal To |
Comparisons are always written in the form: Variable Op Value.
Main: IF StartBtn = 1 THEN Main ' wait for input to go low Check_Mode: IF ModePin = 0 GOTO ShowAMPM ' use HH:MM xM format if mode = 0
Related instructions: IF...THEN...ELSE, BRANCH, GOTO, and EXIT
file: /Techref/parallax/sxb/sxb/if-then.htm, 2KB, , updated: 2006/4/10 14:47, local time: 2025/5/22 22:07,
216.73.216.227,10-1-99-150:LOG IN
|
©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.ecomorder.com/Techref/parallax/sxb/sxb/if-then.htm"> IF-THEN</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to massmind.ecomorder.com! |
.