TI-Basic Z80 Programming/List of Commands/Then
Then
This command is paired with a conditional command such as the If statement. Comparable to the DOS "do" command, this simply tells the calculator what to execute if a certain statement is true.
If A=0 //If value A=0 goto the next line Then //Because value was true, continue to the next line ... //Rest of code to execute ... End //Defines end of If block
Because of the inefficiency and redundancy of this command, it is often excluded in order to save space. In such cases the code is written
If A=0 ... ... End
This format works in nearly all cases.