View Single Post
Unread 10-05-12, 06:04 PM   #8
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 4,390
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
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline   Reply With Quote