toggleOnTrue

fun toggleOnTrue(command: Command): Trigger

Toggles a command when the condition changes from false to true.

Return

this trigger, so calls can be chained

Parameters

command

the command to toggle