docs/reference/src/documentation/operations/assertions/index.md
An assertion is a condition which must evaluate to the Boolean value of true and its purpose is to prevent undesirable computation when the condition is evaluated to false.
For example, a function may only work if the condition argument < 5 is true. We can use an assertion to enforce this condition by:
5 <= argumentHandling exceptions may be done through if expressions therefore the following sections will take a look at how we can make the virtual machine revert (safely crash).
assert: Checks if a condition is true otherwise revertsrequire: Checks if a condition is true otherwise logs a value and revertsrevert: Reverts the virtual machine with the provided exit codeassert_eq: Checks if a and b are equal otherwise revertsassert_ne: Checks if a and b are not equal otherwise reverts