Programmer Guide/Command Reference/WORD: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
<code>var := WORD <var>i</var> <var>wordList</var></code>
var := WORD <var>i</var> <var>wordList</var>


&rarr; var = 'word<sub>i</sub>' 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 &le; <var>i</var> &le; 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>
:A blank separated list of words.
:A blank separated list of words.


Select a word by index from a list of words. See also <code>[[Programmer Guide/Command Reference/KEYWORD|KEYWORD]]</code>.
Select a word by index from a list of words. See also <code>[[Programmer Guide/Command Reference/KEYWORD|KEYWORD]]</code>.

Revision as of 14:31, 15 April 2014

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