ifFalse

infix inline fun Boolean.ifFalse(block: Block)

evaluates a block if the receiver is boolean false value, this is smalltalk's way of unless statement.

Parameters

<receiver>

Boolean

block

block of code to execute if false

inline fun Boolean.ifFalse(block: Block, ifTrue: Block)

evaluates first block if the receiver is boolean false value, otherwise evaluates the second block, this is smalltalk's way of unless...else statement.

Parameters

<receiver>

Boolean

block

block of code to execute if false

ifTrue

block of code to execute if true