Logical Xor of true/false status of two values
? = exp1 ^^ exp2
If you want to test whether one - and only one - of the expression is logically true (either-or), you can use the logical XOR operator ^^. The condition is evaluated form left to right. To evaluate to true only one of the conditions must be true.
If Len(a$) ^^ height => 100
This expression evaluates to true when a$ contains data and the height variable is less than 100, or when a$ is empty and height is greater or equal to 100.
Dim a% = 10, ff% = 5
Print "a% = 3 XOR ff = 5 " & (a% = 3 ^^ ff = 5 ? "is true" : "is false") /* Returns True
Print "a% = 10 XOR ff = 5 " & (a% = 10 ^^ ff = 5 ? "is true" : "is false") /* Returns False
&&, ||, !, Operator Hierarchy
{Created by Sjouke Hamstra; Last updated: 18/09/2014 by James Gaite}