Error in Time Script


Does anyone know what may be this error or what I can fix?

At a quick glance your indenting is off to start. Is your values variable meant to be a integer or an array? Line 4 needs an indent or will throw a syntax error from the if statement.

Python doesn't allow arbitrary indentation. Top level code that isn't in a conditional block or function/class definition must not be indented.

It's a list of paths, with a list of values used in writeBlocking. That part is correct.

1 Like

Thanks! Edit my post to fix.

1 Like

As Phil said, you need to outdent your code. There is no def ... in your script so the line(s) shouldn't start with a tab or spaces. Move them all to column 1.