Basic Concepts
Variables
Learn how to create and use variables in the FlexiLayout language code sections.
You can create and use variables in any section where code is entered. The name of a variable cannot coincide with the name of a global constant or the name of an element.
Variables can be created in one of two ways.
For example:
To call the value of a variable, you must first initialize it by using an assignment operator. Calling a variable that has not been initialized will result in an error during compilation or when executing the code.
For example:
The system creates a variable with the specified name. The type of the variable is implicitly defined by the type of the expression it refers to. At the same time the variable is initialized using the value of the expression.
Variables created using this method can be conveniently used as shortcut names for deeply nested elements and other objects to make the notation shorter.
