Check out example codes for "conditional statements in ti-82". It will help you in understanding the concepts better.

Code Example 1

If 5+5 > 9 (If is found in prgm,CTL,1)
Then (Then is found in prgm,CTL,2)
Disp "10 IS GREATER THAN 9" (Disp is found in prgm,I/O,3)
Else (Else is found in prgm,CTL,3)
Disp "SOMETHING IS WRONG"
End (End is found in prgm,CTL,7)
(This will print "10 IS GREATER THAN 9")

Learn ReactJs, React Native from akashmittal.com