Question about Python and game object properties.

So I have an object that runs the following Python script every frame:

from bge import logic
cont = logic.getCurrentController()
own = cont.owner
if not ['ManualAngle'] in own:
        own['ManualAngle'] = own['Angle']

The idea is that the script checks to see if the object has a property called “Manual Angle”, and if it doesn’t, it creates one and sets it equal to “Angle”. The problem is that the if clause seems to be executing every time the script does, and so “ManualAngle” is always being created anew and set to “Angle”. I can tell this because “hooha” is constantly printed to the console. Obviously, there’s something I’m not understanding. Could someone help me out?

its just the square brackets in you if statement ie:

if not 'ManualAngle' in own:

instead of

if not ['ManualAngle'] in own:

Thank you! Works fine now.