08-16-2013, 01:11 PM
(target.state != 12 || target.state != 18)
what it checks: my target's state is not 12, OR, my target's state is not 18.
if my target's state is 12, then it is true that my target's state is not 18. therefore my condition is true.
if my target's state is 18, then it is true that my target's state is not 12. therefore my condition is true.
if my target's state is 9001, then it is true that my target's state is not 12. therefore my condition is true.
(target.state != 12 || target.state != 18) is not equivalent to (target.state !=12 && target.state != 18)
Azriel~
what it checks: my target's state is not 12, OR, my target's state is not 18.
if my target's state is 12, then it is true that my target's state is not 18. therefore my condition is true.
if my target's state is 18, then it is true that my target's state is not 12. therefore my condition is true.
if my target's state is 9001, then it is true that my target's state is not 12. therefore my condition is true.
(target.state != 12 || target.state != 18) is not equivalent to (target.state !=12 && target.state != 18)
Azriel~