Yes, it’s time for another late night session of “what glaringly obvious newbie mistake did I make this time?”
[code]local function printRank(type)
if type == Football then
print ( “Football” )
elseif type == Basketball then
print ( “Basketball” )
elseif type == Hockey then
print ( “Hockey” )
end
end
printRank(Hockey)[/code]
The above prints “Football”, no matter what is passed through the function (eg: printRank(turkeysandwich)). If I try to set type to a variable, it just comes up as nil.
Must be missing something really obvious, but how do you pass parameters to a function and have it act on them differently based on what you use?
Cheers 
[import]uid: 41884 topic_id: 12846 reply_id: 312846[/import]