Skip to main content

Introduction

Variables

A variable is a custom data used to represent, transform or combine properties coming from a stream.

They can be displayed in dashboards, used to change the color of a tile or to trigger a rule, and more. A good understanding on how variables works is needed to do what you would like to do in configuration.

You can do logic operations and mathematical operation on variables. Two basic use cases could be:

  • You want the power output of a machine. You multiple ($Voltage * $Intensity), the voltage and the intensity being stream properties comming in from your machine.
  • You want to see if the temperature is above 60°C. You evaluate ($Temperature > 60), this gives you false if not, true if yes.

Let's see how to use variables in our application.