BlockingConditionalCommand

constructor(condition: () -> Boolean, trueCommand: () -> Command, falseCommand: () -> Command? = null)

Parameters

condition

the condition to reference

trueCommand

the command to schedule if the reference is true

falseCommand

the command to schedule if the reference is false