ifElseBlock

fun BlockHost.ifElseBlock(expression: Expression?, block: BlockHost.() -> Unit): HalfIfElse

Starts an 'if-else' block.

Parameters

expression

The condition to check.

block

The script to run if the condition is true.