of     1   

Jello715
Top 100 Poster
#1994180Friday, July 25, 2008 10:56 PM GMT

Either that, or I don't know my math... if print(tostring(10) == "10") then print("This script works") else print("Everything is wrong in the world 0_o") end
Jello715
Top 100 Poster
#1994195Friday, July 25, 2008 10:57 PM GMT

When I enter the script.... This comes up: Everything is wrong in the world 0_o
12thDimension
#1994315Friday, July 25, 2008 11:08 PM GMT

tostring(10) Doesn't that mean tostring x 10? That is not a value, and neither is "10"
Jello715
Top 100 Poster
#1994322Friday, July 25, 2008 11:08 PM GMT

Oh, tell more please!
LuigiFan
#1994591Friday, July 25, 2008 11:27 PM GMT

Because you put a print inside the if. if tostring(10) == "10") then print("This script works") else print("Everything is wrong in the world 0_o") end That would work. This is pointless to say, but most people wouldn't write an "if" statement like that. Most would do it like this. if tostring(10) == "10" then print("This script works") else print("Everything is wrong in the world 0_o") end -LF
superdimensionmaster
#1994681Friday, July 25, 2008 11:34 PM GMT

"10" Means looking for an object with the name 10. if tostring(10) == 10 then print("This script works") else print("Everything is wrong in the world 0_o") end If it doesn't work, then try: if (tostring(10) == 10) then print("This script works") else print("Everything is wrong in the world 0_o") end
Jello715
Top 100 Poster
#1996709Saturday, July 26, 2008 1:48 AM GMT

Ah, thanks for explaining! I barely started learning Lua today :D

    of     1