6.1 Asserts

The function asserts! requires two parameters: a boolean expression and a throw value. If the boolean expression is true, asserts! returns true and execution continues. However, if the expression is false, asserts! returns the throw value and exits the current control flow.

Last updated