Thanks for the help. After an all day attempt to get the functions to work right I was finally able to get my results. One more question, is there a way to get the "currentSpecName" to show up in a pop up message window? I got it to work under print(blah blah), but not in the message(blah blah).
Code:
if role ~= specRole then
playSound()
message("|cffFF4500You are in the wrong Specialization!|r \n \n |cffffff00Change your Current Specialization before Combat!")
print("|cff00ccffYour current Specialization:|r", currentSpecName)
end
if role == specRole then
print("|cff00ccffYour current Specialization:|r", currentSpecName)
end
Edit: I added a little comment to my addon thanking all of you. If you would like me to leave you out just let me know. Thank you all again.