Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Function: and() / &&

Returns the result of a logical AND operation on two or more arguments. I.e. if all the passed arguments are true (or are non-null and non-zero), then and() will return true.

Syntax

  1. and(cond1, cond2[,..,condN])
  2. cond1 && cond2
Argument Type Description
cond1 Boolean A logical value to be tested
cond2 Boolean A logical value to be tested<
condN Boolean Any number of additional optional logical values to be tested

Examples

in.calls > 20 && in.duration > 1000

Returns the following depending on the values of in.calls and in.duration

in.calls in.duration Result
15 900 0
15 1100 0
25 900 0
25 1100 1

See Also

  • No labels