if Block
fun BlockHost.ifBlock(expression: Expression?, block: BlockHost.() -> Unit): ConditionalBlockBlockHost
Adds an 'if' block.
Parameters
expression
The condition to check.
block
The script to run if the condition is true.
Adds an 'if' block.
The condition to check.
The script to run if the condition is true.