mirror of https://github.com/odrling/Aegisub
More Automation docs updates.
Clarification of the xor function in utils.lua. Originally committed to SVN as r511.
This commit is contained in:
parent
4f2cceb3f5
commit
d3a4f9d1c1
|
@ -169,5 +169,11 @@ end
|
||||||
|
|
||||||
-- Exclusive or of two boolean values
|
-- Exclusive or of two boolean values
|
||||||
function xor(a, b)
|
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
|
end
|
||||||
|
|
BIN
docs/help.hmx
BIN
docs/help.hmx
Binary file not shown.
Loading…
Reference in New Issue