xor

boolean1 xor boolean2

Reports true if either boolean1 or boolean2 is true, but not when both are true.

if (pxcor > 0) xor (pycor > 0)
  [ set pcolor blue ]
;; upper-left and lower-right quadrants turn blue

Take me to the full NetLogo Dictionary