onTrue

fun onTrue(command: Command): Trigger

Starts the given command whenever the condition changes from false to true.

Return

this trigger, so calls can be chained

Parameters

command

the command to start