IsActive

From MaratisWiki
(Difference between revisions)
Jump to: navigation, search
m
m
 
Line 1: Line 1:
 
{{lua-function|isActive|object}}
 
{{lua-function|isActive|object}}
  
Returns the object's active state (boolean) :
+
Returns boolean value of the object's active state.
 +
 
 +
{{lua-function-param|object|object to operate on}}
  
 
  active = isActive(object)
 
  active = isActive(object)

Latest revision as of 01:15, 9 February 2014

isActive(object)

Returns boolean value of the object's active state.

  • object : object to operate on
active = isActive(object)

Example:

if isActive(object) then
    print("object is active")
end
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox