And Or Xor (binary) - Forum

Forum Navigation
You need to log in to create posts and topics.

And Or Xor (binary)

I looked in the documentation, but I couldn't find any bitwise operators.
I guess I have to go through Javascript...

@patrik please let me know how can they be useful and I will try to add them to NeoScript too.
Thank you in advance!

The use I make of it is the notion of mask.

Example: 5 is decomposed binary into 4+1 (101).
5 AND 1 == 1 : true --> 1 is into 5
5 AND 2 == 2 : false --> 2 isn't into 5
5 AND 4 == 4 : true --> 4 is into 5
Etc.

But I can do it another way...