Question: Why does restart at beginning of Document break an example procedure from the documentation?

I am trying to use procedures for the first time in a Document.  I copied and pasted an example (addList) from the documentation into my document.  This example works fine but putting a restart at the beginning of the Document breaks it and I don't understand why.

I am also trying to write my own very first procedure, more or less following the pattern of the example, but that is giving an unable to parse error and, again, I don't understand why.

I am sure this is a very simple error on my part but I would appreciate some help un understanding what I am doing wrong.

Thank you.

Please Wait...