Functions Index :: A :: And

[<< up one level]


bool :: core


And(val x1, val "x2", val "x3", val "x4", ... , val "x20")


Returns the result of the AND of its arguments. [1]

Possible usage includes combination of multiple tests in Assert() statements, bitwise flags testing, etc.


d = And(true, true, false) # d == false

a = And(1 < 2, 2 < 3, d == false) # a == true


[<< top]


[1]: The function can handle up to 20 arguments. This number is chosen as a good balance between usability and speed. If more arguments are needed use an array and the ArraySum function, or a suitable function of the array package.