Pn junction Phase Modulator (MZI)

I have this code from a book on Silicon photonics and assume that it should work just fine, but I do get different syntax error messages that I don’t know how to overcome. Could you please help?
I assume maybe it is because the author of the book used a different (either newer or older) version of Lumerical compared to what I have.Modulator-Lucas_error.lms (239.2 KB)

Hi, if you can share the error messages or the script with us then I should be able to comment why this is happening.