====== and ======
===== Description =====
The boolean 'and' function returns true if //both// of its two boolean arguments are true.
===== Function prototype =====
bool and  
===== Arguments =====
^  Name  ^  Type  ^ Comment ^
|  //arg1//  |  bool  | The first boolean argument to be tested. |
|  //arg2//  |  bool  | The second boolean argument to be tested. |
===== Return value =====
True if both //arg1// and //arg2// are true, and false otherwise.
===== Example =====
// create two new boolean variables...
bool b1
bool b2
// ...and set one to true and one to false
set b1 true
set b2 false
// call 'and b1 b2', and pipe result to event log via echo
echo 
... the output of which is written to the event log by [[plugins:general:zeoscript:reference:functions:echo]] as:
false
===== Comments =====
==== Both arguments are evaluated ====
Unlike other languages such as C/C++, both arguments to the ''and'' function are always evaluated in ZeoScript, regardless of whether the answer can be determined from the first argument alone. 
===== See also =====
  * [[plugins:general:zeoscript:reference:functions:not]]
  * [[plugins:general:zeoscript:reference:functions:or]]
  * [[plugins:general:zeoscript:reference:functions:xor]]