You ca use like this way too:
if ((accelerationX > 100 and accelerationX < 500) or (accelerationY > 100 and accelerationY < 500))
C++ Keyword Synonyms
and &&
and_eq &=
bitand &
bitor |
not !
not_eq !=
or ||
or_eq |=
xor ^
xor_eq ^=
Ref: IF with AND and OR fuctions - #2 by robtillaart
RV mineirin