Skip to content

Commit 683f76c

Browse files
committed
Function to Loop on a list retrieving value, faster then a FOR statement
1 parent 0e2d420 commit 683f76c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

COSQuickRef.md

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ A list of some common ObjectScript expressions
9090
| Display string after replacing characters | `Write $translate(string, searchChars, replaceChars)` |
9191
| Build a list | `Set listString = $listbuild(list items, separated by comma)` |
9292
| Retrieve an item from a list | `Set variable = $list(listString, position)` |
93+
| Retrieves elements sequentially from a list | `Set pointerToNextElement = 0`<br> `While = $ListNext(listString, pointerToNextElement, value) {}` |
9394
| Put item into list string | `Set $list(listString, position) = substring` |
9495
| Display the length of a list | `Write $listlength(listString)` |
9596
| Search a value in a list | `Write $listfind(listString, value)` |

0 commit comments

Comments
 (0)