IsActive

Returns boolean value of the object's active state.

active = isActive(object)

Example:

if isActive(object) then print("object is active") end