2015-10-22_16-59-38-1If Then


This is a component widely used as it allows to carry out specific tasks upon the occurrence of certain conditions. If a component passes to a state or if a value of a sensor changes to be higher by a value set by the user, this can generate a specific action.

Reminder before starting

FREE test

We provide you a test project already configured in order to let you try on your own the plugin’s functionalities in just a few quick steps.

-> GO TO THE SAMPLE PROJECT

COMPONENT’S PROPERTIES

Customizable component’s title and icon. Please refer to “Common properties” guide.

GUI

This component’s sample is made by using Graphic UI gateway.

Please refer to “Gateways / Protocols” chapter in order to get further info.

Enable component: checkbox which defines whether the function is enabled or disabled on the system.

Operation’s condition: (Optional)

Fulfil task only when: a component that defines the condition under which the operation is executed;

Value is: the component’s value that defines the condition under which the operation is executed.

Primary condition & Secondary condition:

The secondary condition is optional, it should be completed only if you want to insert two conditions because something happened.

Trigger component: component whose value defines when the operation is executed (Optional);

Component: Drop Down, Info, Color info, Text infoSwitch, Lock or Pulse component that defines the condition under which the logic is executed;

Condition:

is lower than: IF is evaluated only when the component’s value is lower than … ;
is equal to: IF is evaluated only when the component’s value is equal to … ;
is higher than: IF is evaluated only when the component’s value is higher than … ;

Ignore startup value: it allows to ignore the component’s value at the system startup;

Value: component’s value that defines when the IF condition is evaluated;

Or component: the component that defines when the IF condition is evaluated;

Then:

THEN: first component on which the logic acts.

THEN component: Drop Down, Info, Color info, Text infoSwitch, Lock or Pulse component;

Value: the value to assign to the component when the logic is executed;

or component’s value: the component value to assign to the component when the logic is executed;

Else:

ELSE: other components on which the logic acts.

ELSE component: Drop Down, Info, Color info, Text infoSwitch, Lock or Pulse component;

Value: the value to assign to the component when the logic is executed;

or component’s value: the component value to assign to the component when the logic is executed;

Note: text field available for additional information on the component from the admin side.

HELP
Logic configuration can be easily carried out by using component’s drag&drop function. When setting components on Component’s parameters, you can use the drop-down menu, or you can drag and drop them from “My components” area to the component selection field.

Reminder before continuing:

  • Download and Install EVE Logic plugin to enable plugins (link);
  • After loading .eve project to the server, wait a couple of minutes for logics activation.

Well done, keep learning!

Our suggestion for your next lesson: