Syntax Errors - some sort of pre-run?

If I am running a script, and a single line has a syntax error - would the script not run at all? In example, if I declare a global variable in line 1 of a script, but line 10 has a syntax error - should I expect the global variable to be declared?

I am not seeing them being created.

If it’s a parse time error, it won’t work. However, if it’s a runtime error, it will run up to that point.

A “runtime” error however is not limit to just errors DURING a command. It also includes errors at the call of a command, such a non-existent argument. As long as you follow the basic “name=value” syntax, that would count as a syntactically valid call.