Conditional Task
Create a new conditional task with the given tasks and condition. Supplied tasks will be reset on init.
Parameters
the task to run if the condition is true
the task to run if the condition is false
the condition to evaluate on initialisation
Create a new conditional task with the given callbacks and condition. Supplied tasks will be reset on init.
Parameters
the callback to run if the condition is true
the callback to run if the condition is false
the condition to evaluate on initialisation
Create a new conditional task with the given callbacks, task names, and condition. Supplied tasks will be reset on init.
Parameters
the callback to run if the condition is true
the task name of the onTrue callback
the callback to run if the condition is false
the task name of the onTrue callback
the condition to evaluate on initialisation