User Tools

Site Tools


modding:function:itmhasattribute

Discuss this page on this pages TalkPage

itmHasAttribute

See itmHasAttribute at Xelerus

Syntax (itmHasAttribute item attrib) → True/Nil
Arguments item: The item you want to test
attrib: The attribute you want to test
Returns True if the 'item' contains the 'attrib', Nil otherwise
Category 0.99, condition query, item
Description Checks if an item has a given attribute.

Example

(itmHasAttribute (itmCreate &itLiquidOxygen; 1) "Volatile")

returns True Return to Functions list

modding/function/itmhasattribute.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1