Quick Reference Guide
TI-Nspire™ Reference Guide 45
I
identity()
Catalog
 > 
identity(Integer) ⇒ matrix
Returns the identity matrix with a dimension of Integer.
Integer must be a positive integer.
If
Catalog
 > 
If BooleanExpr 
Statement
If BooleanExpr Then
Block
EndIf
If BooleanExpr evaluates to true, executes the single statement 
Statement or the block of statements Block before continuing 
execution.
If BooleanExpr evaluates to false, continues execution without 
executing the statement or block of statements.
Block can be either a single statement or a sequence of statements 
separated with the “:” character.
Note for entering the example: In the Calculator application 
on the handheld, you can enter multi-line definitions by pressing @ 
instead of · at the end of each line. On the computer keyboard, 
hold down Alt and press Enter.
If BooleanExpr Then 
Block1
Else
Block2
EndIf
If BooleanExpr evaluates to true, executes Block1 and then skips 
Block2.
If BooleanExpr evaluates to false, skips Block1 but executes 
Block2.
Block1 and Block2 can be a single statement.










