User Login
Name
Password
Site Contents
News
About
Download
Scripts
Tutorials
Register
Support
FAQ
Script Reference
New User


Contact Me
Xide
Online Scripting Reference

getWord

Purpose
Copies a specific word out of a line of text.

Syntax
getWord {line} var {index} {default}

{line}: A line or block of text to copy a specific word from.

var: A variable to hold the copied word.

{index}: The number of the word to copy, counted from the left of the line.

{default}:



Notes
This command is easily the most heavily used text parsing command available in TWX Script. It can be used very effectively with a TextLineTrigger.

Example
setVar $line "This is a line of text"
getWord $line $word 4

# displays: line
echo $word



Return to item listing