====== xor ======
===== Description =====
The boolean 'xor' function returns true if one, and only one, of its two boolean arguments are true.
===== Function prototype =====
bool xor
===== Arguments =====
^ Name ^ Type ^ Comment ^
| //arg1// | bool | The first boolean value. |
| //arg2// | bool | The second boolean value. |
===== Return value =====
True if:
* //arg1// is true and //arg2// is false, or;
* //arg2// is true and //arg1// is false.
False otherwise.
===== Example =====
echo // should be false
echo // should be true
echo // should be true
echo // should be false
... the output of which is written to the event log by [[plugins:general:zeoscript:reference:functions:echo]] as:
false
true
true
false
===== Comments =====
None.
===== See also =====
* [[plugins:general:zeoscript:reference:functions:not]]
* [[plugins:general:zeoscript:reference:functions:or]]
* [[plugins:general:zeoscript:reference:functions:and]]