Invalid in a function or current expression

Texas Instruments TI-Nspire Calculator

Severity: Minor

What it means

450: only certain commands are valid in a user-defined function.
550: a number of commands aren't valid outside a function or program.
TI's example is Local.
560: the command is invalid outside Loop..EndLoop, For..EndFor or While..EndWhile.
TI's example is Exit.
565: invalid outside a program.

Affected Models

  • Texas Instruments TI-Nspire CX and TI-Nspire CX CAS
  • Texas Instruments TI-89 and TI-92 Plus

How to Fix It

  1. 450: turn the function into a program, or take the command out.

    On the TI-89, TI adds that the Window, Table, Data/Matrix and Solver editors can't take commands or a colon.

  2. 550 and 565: put the command inside a Func or Prgm.

  3. 560: move the command into the loop.