Programmer Guide/Command Reference/WORD: Difference between revisions

From STX Wiki
Jump to navigationJump to search
m (1 revision: Initial import)
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
==WORD==
<code>var := WORD <var>i</var> <var>wordList</var></code>
<code>var := WORD <var>i</var> <var>wordList</var></code>


-> var = 'wordi' or empty if <var>i</var> is not a number or outside the range 0 .. nWords-1
&rarr; var = 'word<sub>i</sub>' or empty if <var>i</var> is not a number or outside the range 0...nWords-1


;<var>i</var>
;<var>i</var>


:The zero-based index of the word to return (0 <= <var>i</var> <= nWords-1).
:The zero-based index of the word to return (0 &le; <var>i</var> &le; nWords-1).


;<var>wordList</var>
;<var>wordList</var>

Revision as of 15:22, 13 April 2012

var := WORD i wordList

→ var = 'wordi' or empty if i is not a number or outside the range 0...nWords-1

i
The zero-based index of the word to return (0 ≤ i ≤ nWords-1).
wordList
A blank separated list of words.

Select a word by index from a list of words. See also KEYWORD.

Navigation menu

Personal tools