2,733
edits
Red Leader (talk | contribs) (fix example) |
Red Leader (talk | contribs) (Update {{func link}} form) |
||
Line 34: | Line 34: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Obviously, you could repeat this using {{func link|maketimer}}, and instead of dumping all nodes to the console, you could just as well process them in a different way. | Obviously, you could repeat this using {{func link|maketimer()}}, and instead of dumping all nodes to the console, you could just as well process them in a different way. | ||
So to get a list of all "aircraft" entries under /ai/models, just use a call like this: | So to get a list of all "aircraft" entries under /ai/models, just use a call like this: | ||
Line 42: | Line 42: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
You can get the size of the list (i.e. number of elements in vector) by using the {{func link|size}} function: | You can get the size of the list (i.e. number of elements in vector) by using the {{func link|size()}} function: | ||
<syntaxhighlight lang="nasal"> | <syntaxhighlight lang="nasal"> |