scheduleConditional

open fun scheduleConditional(cmd: Cmd, condition: () -> Boolean)

Schedule a command when an additional condition is met and button is just pressed

Parameters

cmd

command to schedule

condition

additional condition required to schedule command