whileTrue

fun whileTrue(command: Command): Trigger

Starts the given command when the condition changes to true and cancels it when the condition changes to false.

Return

this trigger, so calls can be chained

Parameters

command

the command to start