query
On this page

warnIfNot

lib.trivial.warnIfNot

Docs pulled from | This Revision | 22 minutes ago


warnIfNot condition message value

Like warnIf, but negated: warn if the first argument is false.

Inputs

condition

false to trigger the warning before continuing with val.

message

Warning message to print before evaluating value.

value

Value to return as-is.

Type

Boolean -> String -> a -> a

Noogle also knows

Aliases