ifnot

fun ifnot(condition: Boolean, body: Lambda): Any

Shorthand for .if {.condition::not}.

Return

body if condition is false, nothing otherwise

Parameters

condition

whether the content should not be evaluated

body

content to evaluate if condition is not verified. Accepts 0 parameters.

Wiki page

Conditional statements