title: xor with 3 values
body: <p>I need to do an xor conditional between 3 values, ie i need one of the three values to be true but not more than one and not none.</p>
  
  <p>I thought i could use the xor ^ operator for this but its not working as expected.</p>
  
  <p>I expected that this would return false but it doesnt.
  (true ^ true ^ true)</p>
  
  <p>all other combinations seem to work as i expected.</p>
  
  <p>When looking at the docs for the xor operator they only talk about comparing 2 values and i cant find anything on doing this for 3 or more values online.</p>
  
  <p>Can anyone shed any light or suggest a simple way of doing this?</p>