Returns a number that indicates the similarity of text1
and text2
, where a number close to 1 means very similar and a number close to 0 means very different.
Returns Invalid expression
if one of the parameter values is unknown.
text1
text
☑️
the first text to compare.
text2
text
☑️
the second text to compare.
Returns a new text that consists of the given values
that are all concatenated.
Returns Invalid expression
if one of the parameter values is unknown or outside the common valid boundaries.
values
text or list
☑️
a list of text
delimiter
text
is placed between the parts when they are joined together.
last_delimiter
text
is placed between the last two parts.
Returns a new text string that is the text representation of a date.
Returns Invalid expression
if Date
is unknown or the indicated format is not valid for dates.
date
date time
☑️
a date
format
text or formatstring
☑️
the format is used to specify how the date should be represented, text or a format string can be used.
language
text
☑️
this parameter is used to specify the date representation of that language
ShortDate
8-4-2022
day month and year in numbers.
ShortDateTime
8-4-2022 17:51
day, month, year and time in numbers
LongDate
vrijdag 8 april 2022
day of the week and month in text with the day and year in numbers.
LongDateTime
vrijdag 8 april 2022 17:51
day of the week and month in text with the day, year and time in numbers.
When using a format string, the separator and order of your date is dependent on your date settings. You can find and change this setting per portal, see more about portal and language settings here.
If the format
or language
parameter contains an unknown value, then the default portal language is used to format the string.
Returns a new text string that is the text representation of a duration.
Returns Invalid expression
ifnumber
is unknown or the indicated format is not valid for duration.
duration
date time
☑️
a duration, in minutes, hours or seconds.
format
numeric
☑️
the format is used to specify how the duration should be represented. You can find the different formats below.
language
yes/no
☑️
this parameter is used to specify the time representation of that language. If the language parameter contains an unknown value, the default portal language is used to format the duration.
Returns a new text string that is the formatted text representation of a number.
Returns Invalid expression
if number
is unknown or the indicated format is not valid for numeric values.
number
numeric
☑️
a value of any type.
decimals
numeric
☑️
the number of decimals that are included in the returned text
grouping
yes/no
☑️
a boolean that indicates if large numbers are grouped (a separator is used)
language
language keyword
this parameter is used to specify the number representation according to the specified language/culture.
If the language
parameter is not specified or contains an unknown value, then the default portal language is used to format the number.
Returns the position as a numeric value where the searched text is found within the source.
The index of the first character is 1, the second character is 2, etc. (1-based).
Returns 0 if the searched text is not found within the source.
source
text
☑️
the source in which the function will search for the search text
search
text
☑️
the text to search for
Returns a text that contains a JavaScript literal.
Returns null
if the value is unknown.
value
any WEM value
☑️
see hint below
Value - any WEM value (strings, numbers, boolean, etc.). The following encoding is used for non-native JavaScript types:
Concept - the concept ID is used
Concept set - array of concept ID's is used
Duration - the number of ticks (milliseconds) is used
File - the URL as a string
Reference - string representation of the referenced list and rowID
Returns a new text where the indicated character is prepended as many times as necessary until the indicated length is reached.
Returns Invalid expression
if input values do not match required type.
value
text, numeric
☑️
a text or a number.
length
numeric
☑️
the number of characters in the resulting text.
char
text
☑️
the character to prepend. If this value has more than 1 character, then the
first character is taken.
Returns a new text where the indicated character is appended as many times as necessary until the indicated length is reached.
Returns Invalid expression
if input does not match required type.
value
text, numeric
☑️
a text or a number.
length
numeric
☑️
the number of characters in the resulting text.
char
text
☑️
the character to append. If this value has more than 1 character, then only the
first character is taken.
Returns True if the pattern is found in text.
Returns False if the pattern is not found in text.
Returns [unknown] if no matches are found or the pattern is faulty.
pattern
text
☑️
The pattern you want to check for.
text
text
☑️
The text you want to check for patterns.
Returns SourceText with the matching patterns replaced by the replace-text value.
Returns SourceText if no matches are found or the pattern is faulty.
pattern
text
☑️
The pattern you want to replace.
sourcetext
text
☑️
The text you want to check for patterns to replace.
replacetext
text
☑️
The text you want to replace the pattern with.
Returns a new text where each occurence of old_value
is replaced by new_value
.
Returns Invalid expression
if the result is not a text.
text
text
☑️
the text on which the replace operation is performed.
old_value
text
☑️
the text that is to be replaced by new_value
.
new_value
text
☑️
the text that replaces all occurrences of old_value
.
Note: The separator
is case sensitive!
Returns an array of text values split at each point where the separator occurs in the given text. Only segments that have a value are included in the returned array. When a split occurs without a value, it is not included. A space is considered as a value and will be returned as a separate array element. This can be useful for counting the number of separations, for example.
text
text
☑️
The text to split.
separator
text
☑️
Specifies the character(s) to use for separating the text.
Returns the part of a text that can be determined by splitting it on the indicated separator and then taking the resulting part at the indicated position.
Returns Invalid expression
if one of the parameters is not valid.
text
text
☑️
The text to split
separator
text
☑️
Specifies the character(s) to use for separating the text
position
text
☑️
The position of the part to return
Returns a new text that is a subset of text
beginning at a position through a number of characters.
Returns Invalid expression
if one of the parameters is not valid.
text
text
☑️
a text
start_position
numeric
(optional) the position to start from
length
numeric
☑️
the number of characters to take from text
Returns a hexadecimal value that is the equivalent of the provided text input or (integer) numeric input. For numeric values, decimals will be ignored - only the integer part of the value will be used for conversion.
text
text
☑️
Original text to be converted to hexadecimal.
number
numeric
☑️
Numeric value to be converted to hexadecimal. Only the integer part of a number will be used, any decimals will be ignored.
Note: this function uses the language setting of a portal when converting a value.
Returns a text representation of value
.
value
☑️
a value of any type.
format
text
a text with the format to which value
must be converted. This parameter only applies when converting a datetime
, duration
or number
.
Loading...