logic control

Rules in KRL can be thought of as the body of an if statement, with the "select when" being the condition.

Rules are used to;

  1. modify Picos states by setting entity variables and app variables. 
  2. raise and send events with updated attributes.

KRL rule structure;


-switch

-defaults

-||, ->

-guards