Computes the logical value of an unary operator applied to an operand.
Function parameters.
The unary operator to evaluate.
The boolean value of the operand.
The computed boolean value after applying the unary operator.
If an unsupported operator is provided.
Computes the logical value of an unary operator applied to an operand.