Skip to main content

BooleanHelper

Git Source

Functions

not

logical NOT operation

function not(bool x) external pure returns (bool);

and

logical AND operation

function and(bool x, bool y) external pure returns (bool);

or

logical OR operation

function or(bool x, bool y) external pure returns (bool);

revertIfTrue

Reverts if the condition is true.

function revertIfTrue(bool x) external pure;

revertIfFalse

Reverts if the condition is false.

function revertIfFalse(bool x) external pure;

Errors

ConditionIsTrue

error ConditionIsTrue();

ConditionIsFalse

error ConditionIsFalse();