View on GitHub

SpheroidScript

//Spheroid Script/spheroid/check

check

Throws an IllegalStateException if the value is false.

fun check(value: Boolean): Unit

Throws an IllegalStateException with the result of calling lazyMessage if the value is false.

fun check(value: Boolean, lazyMessage: () -> Any)