This may seem absolutely easy task for someone out there but I'm stuck on this one.
Scenario:
I'm trying to achieve something in Node Red that has been done on Visual Basic.
A very simple scenario which could be understood by seeing the images below -
I have a combination of long integers in visual Basic which gives me zero or non zero values for certain combinations which when tried in Node Red with the same combinations doesn't give the desired results as those achieved in VB (Visual Basic)
Which should give me ZERO in Node Red (as this same combination in VB gives me zero) But I'm getting something else. How do I achieve this (result zero) ?
Also last question which is actually irrelevant here but someone from VB background may answer.
Why am I getting the non zero values for temp2 & temp3? can anyone explain please?
Additionally, in JavaScript || and && are boolean operators, so rather than bitwise you’re comparing them. There’s a large matrix somewhere out on the Internet explaining the specifics of boolean operators in JS per type and direction, but for bitwise you require the single character rather than double.
So what you see in your debug is the output of boolean comparison rather than bitwise operation. Hope that helps.
Using only one & for bitwise comparison is giving the desired result.
Thank you all.
But when i tried to use this in an if /else or if/esle if statement I'm getting this error.