Conditional structures: Difference between revisions

Content added Content deleted
(Add TI-83 Basic section)
Line 4,018: Line 4,018:
}</lang>
}</lang>
Note that the <tt>switch</tt> command can also use glob matching (like <tt>case</tt> in the Bourne Shell) or regular-expression matching.
Note that the <tt>switch</tt> command can also use glob matching (like <tt>case</tt> in the Bourne Shell) or regular-expression matching.

=={{header|TI-83 BASIC}}==
There are 3 forms of conditional statement:
<br>
'''Basic form'''
<br> with only one statement for the true part:
<lang ti83b>
If condition
statement
</lang>
or in one line
<lang ti83b>
If condition : statement
</lang>

'''If-Then form'''
<lang ti83b>
If condition
Then
statements
End
</lang>

'''If-Then-Else form'''
<lang ti83b>
If condition
Then
statements
Else
statements
End
</lang>




=={{header|Toka}}==
=={{header|Toka}}==