hi.
i would like to say in a python script:
if GameLogic.variable EXISTS:
someone suggested that it was
if GameLogic.variable:
but this doesn’t work.
This is because i want to say, if an object has a certain property then do such and such.
I won’t believe that this is not possible because it seems too useful and i could write a class myself to do it if i had to but there should be an easy way.
until this post i have been using try: except: to test existance. by doing an operation on it, it means that the variable exists if you don’t get an error.
however this is a crap way of doing it so…Help
-Luke