Checking if a string property's value has been changed?

Simple question here - in Python, how can I check if my object’s String property’s value has changed?

Trying to use if own['Example String Property'] to try to check the property’s value does not work. So, how can I check in Python if my string property value has changed? If there is an actuator for detecting changed String properties, how can I replicate this in Python?

Logic bricks : There’s a property sensor logic brick with “changed” … so cannot be more simple … but it makes a double pulse (true then a false)

image

if you want a single pulse (true or false) . Use one of the other “Evaluation type”

In python, you can simply use another property you will use as a copy to compare with the original value (that’s what lopas does in his answer)