and
Description
'and' operator is a boolean operator that returns true if both operands are 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 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
Call the function
and
inside theconsole
function. value1 : greater (value1: 3000 and value2: 1100) value2 : trueCall the function
greater
inside the parametervalue1
and setvalue2
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).
Links
Last updated