Variables

We use the term variable as it is used in mathematics and other programming languages: a named value that can be changed (varied). Variables can be created in different ways.

  • Some blocks like count with and for each use a variable and define its values. A traditional IT term for such variables is loop variables.
  • User-defined functions (also called “procedures” can define inputs, which can be used to create variables that can only be used in this function. Such variables are traditionally referred to as “parameters” or “arguments.”
  • Users can change variables at any time using the set block. These are traditionally called “global variables.” They can be used anywhere in the code of ROBO Pro Coding.