This topic describes the syntax, features, parameters, and return values of logical functions. This topic also provides examples of these functions.
and
The following table describes the details about this function.
Item | Description |
Syntax |
|
Description |
|
Parameter | The value that you want to check. You can specify one or more values. Data type: any type. |
Return value | Returns |
Example |
|
or
The following table describes the details about this function.
Item | Description |
Syntax |
|
Description |
|
Parameter | The value that you want to check. You can specify one or more values. Data type: any type. |
Return value | Returns |
Example |
|
not
The following table describes the details about this function.
Item | Description |
Syntax |
|
Description | Executes the NOT logical operator. The values of |
Parameter | The value that you want to check. You can specify only one value. Data type: any type. |
Return value |
|
Example |
|
eq
The following table describes the details about this function.
Item | Description |
Syntax |
|
Description | Compares whether two values are equal. |
Parameter |
|
Return value | Returns |
Example |
|
ne
The following table describes the details about this function.
Item | Description |
Syntax |
|
Description | Compares whether two values are not equal. |
Parameter |
|
Return value | Returns |
Example |
|
null
The following table describes the details about this function.
Item | Description |
Syntax |
|
Description | Checks whether a data type is specified for EdgeScript (ES). |
Parameter | v: the parameter to pass. Data type: array, dictionary, or string. A value of false is returned for other data types. |
Return value | Data type: Boolean.
|
Example |
Output:
|