IsSomething(v)The function verifies if a variable has a non-null value, or has members, of array indexes. Example:
' it is null
a = null
' it has non-null value assigned
b = 1
' it is null, but has a member assigned
c = null
c.member = 2
' it is null, but has array index assigned
d = null
d[2] = "hello"
if IsSomething (a) ' not true
print("a is something")
end if
if IsSomething (b) ' true
print("b is something")
end if
if IsSomething (c) ' true
print("c is something")
end if
if IsSomething (d) ' true
print("d is something")
end if
See also: