View on GitHub

SpheroidScript

//Spheroid Script/spheroid/require

require

Throws an IllegalArgumentException if the value is false.

fun require(value: Boolean): Unit

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

fun require(value: Boolean, lazyMessage: () -> Any): Unit