$deltok: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
Doomie (talk | contribs)
No edit summary
 
Doomie (talk | contribs)
No edit summary
Line 10: Line 10:
This example will also echo ''This is a test'', as the last two words are removed from the text.
This example will also echo ''This is a test'', as the last two words are removed from the text.


[[Category:Token Identfiers]]
[[Category:Token Identifiers]]

Revision as of 16:23, 16 October 2005

Deletes the Nth token from text.

$deltok(text,N-N2,C)

Note that you can specify a negative value for N.

Example

echo -ag $deltok(This is a moo test,4,32)

This example will echo This is a test, as moo is removed from the text.

echo -ag $deltok(This is a test for you,-2-1,32)

This example will also echo This is a test, as the last two words are removed from the text.