Conditional structures: Difference between revisions

Content added Content deleted
(Add TI-83 Basic section)
Line 4,021: Line 4,021:
=={{header|TI-83 BASIC}}==
=={{header|TI-83 BASIC}}==
There are 3 forms of conditional statement:
There are 3 forms of conditional statement:
<br>
<br><br>
'''Basic form'''
'''Basic form'''
<br> with only one statement for the true part:
<br> with only one statement for the true part:
<lang ti83b>
<lang ti83b>If condition
statement</lang>
If condition
statement
</lang>
or in one line
or in one line
<lang ti83b>
<lang ti83b>If condition : statement</lang>
If condition : statement
</lang>


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


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




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