and

Description

'and' operator is a boolean operator that returns true if both operands are true and returns false otherwise.

Input / Parameter

NameDescriptionInput TypeDefaultOptionsRequired

value1

The first boolean value to check.

Boolean

-

-

Yes

value2

The second boolean value to check.

Boolean

-

-

Yes

Output

DescriptionOutput Type

Returns true if both operators are true, returns false otherwise.

Boolean

Callback

N/A

Video

Coming Soon.

Example

The user wants to check if value 1 and value 2 are both true and return the result in the console.

Step

  1. Call the function and inside the console function. value1 : greater (value1: 3000 and value2: 1100) value2 : true

  2. Call the function greater inside the parameter value1 and set value2 to 'true'.

Result

The console will print 'true' since value1 will return 'true' (3000 is greater than 1100) which matches the input for value2 (true).

Last updated