Variables
Variables in CES are used to store values that can be accessed and modified during script execution.
Each variable must be declared with a type, a name, and an assigned value.
Declaration
To declare a variable, specify the type first, followed by the variable name.
Use : to assign the value and end the statement with ;.
Variable declaration rules
Variables in CES must be declared using : instead of =.
The = operator and compound operators such as += or -= can only be used after the variable has already been initialized.
Example:
Supported types
CES currently supports the following basic types:
Str→ text valuesInt→ integer numbersBool→ true or false valuesHex→ hexidmal valuesFloat→ float valuesList→ list of valuesDict→ dict of value
Accessing variables
To access a variable in CES, simply use its name in an expression or function call.
Example:
Output:

Updating variables
Variables can be updated after declaration by assigning a new value with the = operator.
Example:
Output:
Explanation:
countstarts with value 0count = count + 1updates the variable to 1