The title explain everything.
I tried this :
local V = "145" if (V) == "number" then print("V is a number") else print("V is not a number") end end)
You can use type() to get the type of a value.
local V = 145 if type(V) == "number" then print("V is a number") else print("V is not a number") end
You can use tonumber() to check if a string can be converted to a number.
local V = "145" if tonumber(V) then print("V is a number") else print("V is not a number") end end)