Or Operator

  • Updated

Returns the logical OR of one or more expressions.

Syntax

 

Returns the logical OR of one or more expressions.

 

expression1 Or expression2

 

 

Arguments:

 

 

 

expression1

Expression

 

 

expression1

Expression

Remarks

  • Evaluates to true if either expression is true, otherwise evaluates to false.
  • expression1 is true and expression2 is true, result = true.
  • expression1 is true and expression2 is false, result = true.
  • expression1 is false and expression2 is true, result = true.
  • expression1 is false and expression2 is false, result = false.
  • Example: true or false returns true.
  • Example: false or false returns false.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.