Programmer Guide/Command Reference/WORD: Difference between revisions
From STX Wiki
Jump to navigationJump to search
(initial import) |
No edit summary |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | {{DISPLAYTITLE:{{SUBPAGENAME}}}} | ||
{{PG_StringCommands}} | |||
var := WORD <var>index</var> <var>word<sub>0</sub></var> [ … <var>word<sub>n</sub></var> ] | |||
<code> | Calling the {{Stx}} command <code>WORD</code> with the integer argument <var>index</var> will return its argument <var>word<sub>index</sub></var>, provided <var>index</var> is in the range of 0…<var>n</var>. If it is not, the {{STX}} command will return the empty string. | ||
;<var>i</var> | ;<var>i</var> | ||
:The zero-based index of the argument ("word") to return (0 ≤ <var>i</var> ≤ <var>n</var>). | |||
;<var>word<sub>0</sub></var> [ … <var>word<sub>n</sub></var> ] | |||
:a list of string arguments, separated by blanks | |||
See also the {{STx}} command <code>[[Programmer Guide/Command Reference/KEYWORD|KEYWORD]]</code>. | |||
Latest revision as of 10:28, 4 March 2016
var := WORD index word0 [ … wordn ]
Calling the STx command WORD
with the integer argument index will return its argument wordindex, provided index is in the range of 0…n. If it is not, the STx command will return the empty string.
- i
- The zero-based index of the argument ("word") to return (0 ≤ i ≤ n).
- word0 [ … wordn ]
- a list of string arguments, separated by blanks
See also the STx command KEYWORD
.