8.8.16 And operator (logical AND) (find the logical AND of two expressions)
- Purpose
-
Finds the logical AND of two expressions.
- Syntax
Result = Expression1 And Expression2
- Arguments
-
- Result
-
Specify a variable for storing the result.
- Expression1
-
Write any expression that evaluates to true or false.
- Expression2
-
Write any expression that evaluates to true or false.
- Description
-
The And operator finds the logical AND of two expressions. The Result value is given as follows:
Expression1
Expression2
Result
True
True
True
True
False
False
False
True
False
False
False
False
- Example
' If the value of variable number1 is between 1 and 10, ' invoke executable file "Day10.SPT". number1 = Day() If 1 <= number1 And number1 <= 10 Then Exec ("Day10.SPT", True) End If
- JP1/Script version
-
Supported from JP1/Script 01-00.