@spacecloud said:
Same, it will only be false when aaa1 is "right" and "left".
Basically,
if (a != some_value || a != some_other_value)
is the same as
if (a == some_value && a == some_other_value)
thanks, i think i understand now.
Iam more used to check for states this way:
if ( state == "st_idle" || state == "st_walk" ):
print(state);
---------------//---------//----------------
in doing this:
if ( state != "st_idle" || state != "st_walk" ):
print(state);
i was doing the same thing has this:
if ( state != "st_idle" ):
print(state);
elif ( state != "st_walk" ):
print(state);
//-----------//-------------
if ( state != "st_idle" ):
print(state);
if ( state != "st_walk" ):
print(state);