:value1 = value2
If the two values are equivalent, this returns true. Else, this returns false. This is equivalent to not(value1≠value2)
, or to be really complex: not(value1>value2 or value1<value2)
.
Location[]
TI-84
- TEST (2nd MATH)
- TEST
- 1:=
TI-89
- =
TI-nspire
- =
Example[]
:Input "NUMBER:",X :If X=5:Then :Output(1,1,"IT'S 5 :Else :Output(1,1,"NOT 5
This program will only perform the text following the If/Then command if the number the user inputted is 5, or equal to 5. The user need not directly input 5. For example, they could input 2+3 and still obtain the same results.