Skip to content

Variables

Manuel Mayer edited this page Jan 30, 2022 · 2 revisions

States, numbers and text can be stored in variables

But you have to distinguish between:

  • User created variables (can be edited by the user)
  • Plugin created variables (read only)

Types

Type Description Example
Integer A integer number 2
Float A floating point number 5.4
String Text Hello
Bool A boolean has 2 states, true and false True/False

Using variables in labels

All variables can be used in labels can be added to labels

Screenshot_5

Using variables as state binding

Both, user created and plugin created variables of the type Bool can be used as a state binding for the buttons. That means the button state is "On" when the variable is "True" and "Off" when the variable is "False".

Screenshot_3

Using variables in conditions

All variables can be used in conditions to run different actions, based on the value of the variable.

Screenshot_6