All pages
Powered by GitBook
1 of 1

Loading...

Syntax

In this example we see already all core elements of the language.

In the following chapters you see many more examples, and all details about what kind of functions and operations exist, and how you can compose the data.

Example of a condition term:

Example of a message term:

Following syntax base components exist:

Literals

Variables

Example

Example of a variable referring to the dataset with name "PowerConsumption"

Values

Example

Example of a number value

Example of a text value

Example of a timespan value

Example of a time value

Functions

Example

Example for calculating the average

Operations

Example

Example for multiplying two numbers

Brackets

Brackets may be needed to control the resolution order of the terms in the expression. This is very familiar to us of course in mathematical terms:

Example

$GridPowerConsumption > 500 AND ($CarChargingMode = 0 OR $CarChargingMode = 4) AND $IsLowTariffHours = 0
"Sie beziehen aktuell " + ($GridPowerConsumption / 1000) + "kW vom Netz."
$GridPowerConsumption
1.5
"it is cold"
30min
now
AVG($PowerConsumption)
1.2 * 42
((4 + 0.5) / (4 - 0.5)) * 2