Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
themeConfluence
linenumberstrue
rule test {
  select when sensor heartbeat
  pre {
    ...
  }
  if condition_is_true then {
    send_directive("Heartbeat")
  }
  fired {
    ...
  } else {
    ...
  } 
}

The prelude comprises a series of declarations. The values bound to names in the declaration are within scope in the condition, action, and postlude of the rule. 

See the child pages of this page for details.