onChange

fun onChange(command: Command): Trigger

Starts the command when the condition changes.

Return

this trigger, so calls can be chained

Parameters

command

the command to start