"And" bit comparison doesn't exist?
Posted: 03 Sep 2011, 01:21
Hi,
I'd like to do something like this but it seems the "and" isn't know in ManiaScript. Am I right, and if so, how could I do this:
I'd like to do something like this but it seems the "and" isn't know in ManiaScript. Am I right, and if so, how could I do this:
Code: Select all
if (Var && 1) {
// Bit Nortd actif => trace north
}
if (Var && 2) {
// Bit East actif => trace east
}
if (Var && 4) {
// Bit South actif => trace south
}
if (Var && 8) {
// Bit West actif => trace West
}