Thank you so much for taking the time to work this out! I’m getting an error on line 43:
“Property or method named ’n’ in Class ‘global’ is missing or does not exist. It may have been renamed, etc. etc.”
Here’s that line:
if (n == 0 || n >= pos.length)
Let me know what you think.
if (n == 0 || n >= pos.length)