Trigger Function

There are two key functions in the system.

The Trigger Function is the function that gets called when you condition function returns true.

For example, if you wanted to send an SMS to someone when the outside temperature was greater than 40 degrees, the Trigger Function would send the SMS, while the Condition Function would check the temperature.

Both the trigger and condition functions are passed a single parameter - a Trigger object.