Page 1 of 1
I can,t use Library Expressions like Bitoperators
Posted: Tue Jun 11, 2019 3:43 am
by lyy65432123
These three pictures are my configuration. Is there any problem with my use?
Software version:2.40 sp2
Re: I can,t use Library Expressions like Bitoperators
Posted: Wed Jun 12, 2019 1:55 pm
by AMitchneck
"(value & 0x1) == 0x1" returns a Boolean value of true or false. My guess is iX is not able to properly convert this back to an integer value and thus returns 0, hence why this value is always blue.
Try removing the == 0x1 portion so the bit0IsSet has the formula "value & 0x1". This will result in an integer value of 0 or 1.
For other bits, you can add a bit shift. Ex: bit1IsSet would have the formula "(value & 0x2) >> 1".
Re: I can,t use Library Expressions like Bitoperators
Posted: Wed Jun 12, 2019 7:16 pm
by lyy65432123
Thanks for your answer,I later discovered that it can only be used on PCs and not on touch screens.