Talk:TI-Basic 84 Programming/Control Flow Statements
Add topicAppearance
Latest comment: 5 years ago by FlorisFireball
I want to share to users that using an organized scheme that makes use of colons (:) may break the "If" statements. As follows: (note that TI Code starts lines with a colon)
:If A=1 ::Disp "THIS DOESNT WORK" : :If A=1 :Then ::Disp "THIS DISPLAYS IF A=1" > :Else or :End
"Else" can be used to chain second "If"s. The previous code can also be simplified: To make it more organized or to fit more on the screen:
:If A=1:Then ::Disp "THIS WORKS" :Else:If A=2:Then ::Disp "THIS WORKS TOO!" :End
This works because colons will state a new line. --FlorisFireball (discuss • contribs) 21:00, 2 October 2020 (UTC)