Error compiling event script for event id 'valueChanged'. SyntaxError: ("mismatched input 'prevStatus' expecting INDENT"

Hello.

I´m getting an issue running next script into Tag events/value changed

The script shows this error message:

Error compiling event script for event id ‘valueChanged’.
SyntaxError: (“mismatched input ‘prevStatus’ expecting INDENT”, (‘tagevent:valueChanged’, 19, 0, ‘prevStatus = previousValue.value\t\t\n’))

Can somebody help me to understand the error and how to fix it?

Regards.

Python is white space dependent.

So your entire script needs to be tabbed in one tab stop under the valueChanged method.

If you want direct help you will need to post the code seperated by 3 of ` at the beginning and then at the end.

1 Like

Thanks bschroeder, you are right and now the script is working… :grinning:

1 Like