elseBlock

infix fun HalfIfElse.elseBlock(block: BlockHost.() -> Unit): IfElseBlock

Defines the 'else' part of an 'if-else' block.

Parameters

block

The script to run if the condition is false.