AND
Returns true if both arguments are logically true, and returns false if either of the arguments are logically false.
The And function takes in two arguments and both are required. To evaluate more than two logical expressions at a time, you can nest multiple And functions (see examples below).
Syntax: AND (
logical_expression_1
,
logical_expression_2
)
logical_expression_1
is the first logical test or expression or boolean value (true, false)logical_expression_2
is the second logical test or expression or boolean value (true, false)
Example: AND ( true , true )
Output: true
Example: IF ( AND ( AND ( 1 < 2 , 2 < 3 ) , 1 == 1 ) , 8 , 9 )
Output: 8
Last updated
Was this helpful?