Board Thread:General Coding Help/@comment-35145028-20170727194046

Hi,

I wrote a little script today. It works great when I paste it into console but when I try to use it with ImportJS I get an error: You can see the error for yourself here. Here's line 27 of the file: And here's the entire file if it's needed.

That's fully correct JS, and it works well in console. So the only thing that comes into my mind is conditional operator. Does it crash load.php? Also, would something like putting it into parentheses help?

Duckey 