Programmer Guide/Command Reference/WORD: Difference between revisions
From STX Wiki
Jump to navigationJump to search
(→WORD) |
No edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | {{DISPLAYTITLE:{{SUBPAGENAME}}}} | ||
var := WORD <var>i</var> <var>wordList</var> | |||
→ var = 'word<sub>i</sub>' or empty if <var>i</var> is not a number or outside the range 0...nWords-1 | → 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 ≤ <var>i</var> ≤ 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 13: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
.