Breaks a string of text into separate words.
numero = 268[listwords Words=This is a big long sentence][index]: [word]The example above yields:1: This2: is3: a4: big5: long6: sentence
[/listwords]
[listwords Words=Hello. My name is Carl!&Delimiters= ,!][index]: [word]The example above yields the following. Notice the "." at the end of "Hello." is shown as part of the word, because "." was not specified in the list of delimiters. Also notice the long run of spaces in a row is collapsed and does not appear in the word list.1: Hello.2: My3: name4: is5: CarlThe following parameters are used in the [listwords] context:
[/listwords]
| Parameter | Description |
|---|---|
| words | (Required) string of text to break up. |
| delimiters | (Optional) List of single characters which define word boundaries. Defaults to space, comma, and dot. |
| tabs | (Optional, Rare) Setting Tabs=T causes the list of words to break at tab boundaries only, and runs of tabs are not collapsed. This assists in parsing special formats where two tabs in a row are important and should not be skipped. |
| Tag | Description |
|---|---|
| [index] | A number from 1 to the total number of words in the text indicating the word's index position in the text. |
| [word] | Text of the word currently being displayed. |
| [delimiter] | Text of the delimiter(s) which caused this word to break. |
| [break] | From version 8.1, if the [listwords] context sees the [break] tag while executing, it will stop, once it finishes the current loop. Thus the [break] tag should only appear in a [showif] statement that is evaluated at the end (bottom) of the loop. |
[listwords Words=This is a big long sentence]
[index]: [word]
[/listwords]
[listwords Words=Hello. My name is Carl!&Delimiters= ,!]
[index]: [word]
[/listwords]
| Parameter | Description |
|---|---|
| words | (Required) string of text to break up. |
| delimiters | (Optional) List of single characters which define word boundaries. Defaults to space, comma, and dot. |
| tabs | (Optional, Rare) Setting Tabs=T causes the list of words to break at tab boundaries only, and runs of tabs are not collapsed. This assists in parsing special formats where two tabs in a row are important and should not be skipped. |
| Tag | Description |
|---|---|
| [index] | A number from 1 to the total number of words in the text indicating the word's index position in the text. |
| [word] | Text of the word currently being displayed. |
| [delimiter] | Text of the delimiter(s) which caused this word to break. |
| [break] | From version 8.1, if the [listwords] context sees the [break] tag while executing, it will stop, once it finishes the current loop. Thus the [break] tag should only appear in a [showif] statement that is evaluated at the end (bottom) of the loop. |
DOWNLOAD WEBDNA NOW!
A list of the currently available modules...
F.A.QA compilation of some user's questions...
AWS Raw WebDNA LAMP-Plus WebServerAmazon Web Services (AWS) README for Machine Image ID...
Technical Change HistoryThis Technical Change History provides a reverse chronological list of WebDNA changes...
WebDNA LibrariesA list of available libraries for WebDNA...
Download WebDNA ApplicationsWebDNA applications...
Prevents WebDNA to return hidden parts of your code to apache (from version 8...
[return]Explicitly identify what text is returned from a function call...
[!]Hides text...
[encrypt][encrypt] and [decrypt] allow you to store sensitive data in your databases without risk of exposing it to prying eyes...
[cookie]Cookies are a great way to remember visitors...
[copyfolder]Copy a folder and all its contenton your webspace...