runIf

suspend fun runIf(condition: () -> Boolean, block: suspend TaskSequenceBuilder.() -> Unit)

Runs the block if the condition is true.

Parameters

condition

The condition to check.

block

The block to execute.