Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Is there a way to check if a variable is a certain type of data?

For example:

local var = {}

is there a way to check if the variable above is a table or a string and more?

1 answer

✓ Accepted answer

use type()

local var = {}
print(type(var))

this will print table

This discussion is preserved as it was. New answers, comments, and votes are closed.