Also, to test for equality, you need two equals-signs, not one.
This sets the value of r to "Newbie", and the check fails because setting a variable doesn't return anything:
if r = "Newbie" then
This compares the value of r to "Newbie" and returns true (passing the check) if it is:
if r == "Newbie" then
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
|