Syntax
int length( list|string X )
Description
length returns the number of elements in the specified list or the number of characters in the specified string.
Example
trustedusers={"jamie", "cory", "robyn"}; print(length(trustedusers));
int length( list|string X )
length returns the number of elements in the specified list or the number of characters in the specified string.
trustedusers={"jamie", "cory", "robyn"}; print(length(trustedusers));
string lsubst( list X, string pattern, string replacement )
lsubst substitutes part of a string with another string throughout all or a specified part of a list X.
print(lsubst({"xxxonexxx","xxxonexxx"},"one","two")); #prints the following list #"{xxxtwoxxx,xxxtwoxxx}"
list range( list X, int begin, int end )
The range function returns a subset of the elements from list X. The subset of elements in the range specified by begin and end. Any value for end greater than the length of the list is the same as end.
trustedusers={"jamie", "cory", "robyn"}; a=range(trustedusers, 1, 2);
The value of a is set to: {"cory", "robyn"}
list replace( list X, int start, int end [, string s1, ...])
The replace function deletes the elements between the start and end indices of the specified list and inserts the supplied strings in their place. If you do not specify any replacement string values, it replaces those elements with nothing; that is, it returns the list with the specified portion omitted.
trustedusers={"jamie", "cory", "robyn"}; a=replace(trustedusers, 1, 1, "sandy"); print(a); // prints "{jamie, sandy, robyn}"
© 2024 One Identity LLC. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center