Change Value

Change the value of a variable

Block Editor

Declare a variable

Use the assignment operator to set the value of a variable. Change the value of a variable from 0 to 1 using the change item block. Like this:

Example

Use the assignment operator to set the value of a variable. Change the value of a variable from 0 to 1 using the change item block. Then display the new value of the variable on the LED screen. Like this:

Notes

  • You can use the assignment operator with variables of each of the supported types.

See also