Garry's Mod Wiki

any

The any keyword is not a type, because it represents all types that are not nil.

In order to determine any, you can use the following code:

local isAny = type(x) ~= "nil"