and

The boolean operator and.
Accepts
Returns
Syntax
and(boolean, boolean, ...) boolean.and(boolean, ...)
Operator

&& · and


Returns true if all of the conditions are true, and false otherwise. Any number of conditions can be checked.

and(
    1 + 2 == 3, 
    3 + 4 == 7, 
    5 + 6 == 11
)and(

    /* Check if 1 plus 2 equals 3 */
    1 + 2 == 3,

    /* Then check if 3 plus 4 equals 7 */
    3 + 4 == 7,

    /* Then check if 5 plus 6 equals 11 */
    5 + 6 == 11

    /* If all of the above are true, return a checked box */
)
=
true