More Automation docs updates.

Clarification of the xor function in utils.lua.

Originally committed to SVN as r511.
This commit is contained in:
Niels Martin Hansen 2006-07-30 21:51:17 +00:00
parent 4f2cceb3f5
commit d3a4f9d1c1
2 changed files with 7 additions and 1 deletions

View file

@ -169,5 +169,11 @@ end
-- Exclusive or of two boolean values
function xor(a, b)
return (a or b) and not (a and b)
if a and not b then
return a
elseif b and not a then
return b
else
return false
end
end

Binary file not shown.