Oops, Just noticed the code I pinched was not the XOR at all it was ($>). XOR would be ($^)

so, using a text string

 Code:
break on
$="-1"
($|) ?
($^)
get $


returns

2
2


But if $ is an integer both OR and XOR return the value of the integer. Good job we're using strings.
_________________________
Every day is a school day