xor1.0

boolean1 xor boolean2

Reports true if either boolean1 or boolean2 is true, but not when both are true. Otherwise returns false. See the programming guide for more information on logical operator precedence.

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

Take me to the full NetLogo Dictionary