ChooseCmd

fun ChooseCmd(    onTrue: Cmd,     onFalse: Cmd,     condition: () -> Boolean)

Parameters

onTrue

the command to run if the condition is true

onFalse

the command to run if the condition is false

condition

the condition to determine which command to run