or

Description

'or' operator is a boolean operator that returns true if either operand is true and returns false otherwise.

Input / Parameter

Name
Description
Input Type
Default
Options
Required

value1

The first boolean value to check.

Boolean

-

-

Yes

value2

The second boolean value to check.

Boolean

-

-

Yes

Output

Description
Output Type

Returns true if either operator is true, returns false otherwise.

Boolean

Callback

N/A

Video

Coming Soon.

Example

The user wants to check if either of the values is true and print the result in the console.

Step

  1. Call the console function. Call the or function inside the value parameter of the console function. value1 : false value2 : false

Result

The console will print false since neither value of the or function is true.

Last updated