Type detection

Is there a method for determining variable type?

isString, isInteger or something?

@bitimage - in a word no. Read the following ref link.

Typing

@bitmage Will this help.

function setup()
    a=25
    b="qwert"
    c={1,2,3}
    d=vec3(0,0,0)
    
    print(type(a))
    print(type(b))
    print(type(c))
    print(type(d))
end

@dave1707 Thanks! That’s perfect!
I appreciate how helpful you guys are. I’m learning so much from the forum.

And, if a table foo is a class instance of class Foo, foo:is_a(Foo) will be true. Unfortunately, you can’t send is_a to just anything. Rather a pity.