Acting when detecting world position
Take a look to logical operators.

position is deprecated use localPosition and worldPosition.

from bge import logic
cont = logic.getCurrentController()
own = cont.owner

own.applyMovement((0.2,0,0),True)

pos = own.worldPosition
x = pos[0]
y = pos[1]
z = pos[2]

print(x)
print(y)
print(z)

if x &gt;= 10:
    own.applyMovement((0,0,5),True)