Thread: operators
View Single Post
  #10  
Old 11-05-2006, 07:13 PM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
xor is EXCLUSIVELY OR...

PHP Code:
if ( var1 != var2 && (var1 || var2 ) ) 
is the same as

PHP Code:
if ( var1 xor var2 
If only one of both vars is true, it returns true.
Reply With Quote