$argsCheck
$argsCheck
will check the arguments of user typed and the required one, if requirements didn’t meet, it will return an
error message.
Usage
Parameters
Field | Type | Description | Required |
---|---|---|---|
condition | string | Condition to be made. | true |
errorMessage | string | Error message if condition did not meet. | true |
Valid Mathematical Operators
Operator | Mathematical Expression |
---|---|
== | equal to |
!= | not equal to |
<= | less than or equal to |
>= | greater than or equal to |
> | greater than |
< | less than |
|| | logical OR |
&& | logical conjunction |
Example(s)
This returns: Greater than 2 arguments if condition met, else it will return an error message.