GetResourceInfo: Difference between revisions
Jump to navigation
Jump to search
m (→Returns) |
No edit summary |
||
Line 1: | Line 1: | ||
{{Needs_Checking|may return a string, bool or nil (?) --[[User:Jbeta|jbeta]]}} | |||
__NOTOC__ | __NOTOC__ | ||
This function retrieves the value of any attribute in a resource info tag. | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
getResourceInfo ( resource, string ) | string getResourceInfo ( resource theResource, string attribute ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''theResource:''' the resource we are getting the info from. | |||
*''' | *'''attribute:''' the name of the attribute we want info about. | ||
*''' | |||
===Returns=== | ===Returns=== | ||
Returns a ''string'' with the attribute value if it exists, ''false'' otherwise. | |||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
--This line does... | --This line does... | ||
Line 36: | Line 24: | ||
==See Also== | ==See Also== | ||
{{Resource_functions}} | |||
{{ | [[Category:Incomplete]] | ||
[[Category:Incomplete]] |
Revision as of 23:51, 12 April 2007
This article needs checking. | |
Reason(s): may return a string, bool or nil (?) --jbeta |
This function retrieves the value of any attribute in a resource info tag.
Syntax
string getResourceInfo ( resource theResource, string attribute )
Required Arguments
- theResource: the resource we are getting the info from.
- attribute: the name of the attribute we want info about.
Returns
Returns a string with the attribute value if it exists, false otherwise.
Example
--This line does... blabhalbalhb --abababa --This line does this... mooo