Posted 16 November 2013 - 10:30 AM
The title basically explains what I want to do. How would I go about getting a variable, seeing if it is a nil value and then convert it into a string (make it say "none")?
Here is my current code:
currentMissile is created from an ICBM missile launcher through the command launcher.currentMissile() and returns nil if there is nothing. I would like it to say none.
Here is my current code:
if currentMissile == nil then
currentMissile = None
end
currentMissile is created from an ICBM missile launcher through the command launcher.currentMissile() and returns nil if there is nothing. I would like it to say none.