Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I have an error in my script. It's probably easy to fix, but I'm new to scripting. Can anyone help?

Asked by 6 years ago

The line of the script with an error in is:

if speaker.Name = "ovyxn" then

The '=' is underlined red and says: Expected 'then', got '=' Can anyone please help me with this?

0
= means you change it to. == means its equal to. tonyv537 95 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

The assignment operator is =

The 'equal to' operator is ==

You can't assign something in the conditional portion

if speaker.Name == "ovyxn" then

Don't forget to accept if this helps

0
Thank you so much! This really helps. OrbitOps 34 — 6y
Ad

Answer this question