BooleanHelper
Functions
not
logical NOT operation
function not(bool x) external pure returns (bool);Parameters
| Name | Type | Description |
|---|---|---|
| x | bool |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | bool |
and
logical AND operation
function and(bool x, bool y) external pure returns (bool);Parameters
| Name | Type | Description |
|---|---|---|
| x | bool | |
| y | bool |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | bool |
or
logical OR operation
function or(bool x, bool y) external pure returns (bool);Parameters
| Name | Type | Description |
|---|---|---|
| x | bool | |
| y | bool |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | bool |
revertIfTrue
Reverts if the condition is true.
function revertIfTrue(bool x) external pure;Parameters
| Name | Type | Description |
|---|---|---|
| x | bool |
revertIfFalse
Reverts if the condition is false.
function revertIfFalse(bool x) external pure;Parameters
| Name | Type | Description |
|---|---|---|
| x | bool |
Errors
ConditionIsTrue
error ConditionIsTrue();ConditionIsFalse
error ConditionIsFalse();