Oxygen Basic

Programming => Problems & Solutions => Topic started by: José Roca on October 03, 2018, 05:37:57 PM

Title: Operators ^^ and ^=
Post by: José Roca on October 03, 2018, 05:37:57 PM
What these operators do? By exclusion, I thought that they were bitwise Xor operators, but print 200 ^^ 184 prints 0 instead of 112.
Title: Re: Operators ^^ and ^=
Post by: Charles Pegge on October 03, 2018, 06:37:50 PM

^ is the power operator (you have to use xor for bitwise xor operations)
but ^^ is a boolean xor

also implemented:
|| boolean or
&& boolean and