Logic events

Top  Previous  Next

Logic events are a kind of XBM internal variables. Dependig on the definition, and eventually on the value, of one or more variables, a job may conditioned.

In order to require logic event conditioning for a certain job the wait_event item tag have to be used. I.e.

#!/bin/csh
#
#@xbm wait event VAR1
#@xbm wait event VAR2 value = 0 or value = 10
#@xbm wait event VAR3 value eq "OK" or value ne "KO"
#

Using the tag specified in the sample above, will cause the job to be kept on hold, untill all the conditions are verified:

the event variable VAR1 is defined, with any value
the event variable VAR2 is defined and its value is numerically equal to 0 (zero) or 10 (ten
the event variable VAR3 is defined and its value is equal to the string "OK" and not equal to the string "KO"

Defining event variables

Event variable are set using the xbmc event set, event unset and event reset command. For further detail, please refer to the Command line section.