Validate that value is numeric or logical
mustBeNumericOrLogical(
throws an error if value
)value
is not numeric or logical. This function does not return a value.
mustBeNumericOrLogical
calls the these functions to determine if the input is numeric or logical:
This function ignores input arguments that are empty values. Therefore, no error is thrown when the property or function argument value is empty.
mustBeNumericOrLogical
is designed to be used for property and function argument validation.