Get(

Command:

Get(

Command Syntax:

CE Calculators:

Get(variable)

 

TI-Nspire™ CX platform:

Get [promptString,] var[, statusVar]

Get [promptString,] func(arg1, ...argn) [, statusVar]

Range

Describe:

 

Result:

Programming command: Retrieves a value from a connected TI-Innovator™ Hub and assigns the value to variable var.

The value must be requested:

In advance, through a Send "READ ..." command.

— or —

By embedding a "READ ..." request as the optional promptString argument. This method lets you use a single command to request the value and retrieve it. (TI-Nspire™ CX platform only).

Implicit simplification takes place. For example, a received string of "123" is interpreted as a numeric value.

 

The information below applies only on the TI-Nspire CX platform:

To preserve the string, use GetStr instead of Get.

If you include the optional argument statusVar, it is assigned a value based on the success of the operation. A value of zero means that no data was received.

In the second syntax, the func() argument allows a program to store the received string as a function definition. This syntax operates as if the program executed the command:

Define func(arg1, ...argn) = received string

The program can then use the defined function func().

Note: You can use the Get command within a user-defined program but not within a function.

Type or
Addressable Component:

All input devices.