Next: , Previous: , Up: The Grand Finale: Bridging Code and Logic   [Contents]


4.4.2 The Rule: Closing the Loop

With the service broadcasting and listening, we just need the "brain" to make a decision. Open your rules file (see rules.conf.example) and drop this in:

myFirstOutput {
    SET 1 WHEN myFirstInput > 50; 
    SET 0 WHEN TRUE;
}