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
andinside theconsolefunction. value1 : greater (value1: 3000 and value2: 1100) value2 : true
Call the function
greaterinside the parametervalue1and setvalue2to '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