Extracts a partial string by parsing an input string into elements delimited by a specified string. The string elements are referenced by their index, commencing at one.
partial := Params( input , delimiter , index )
- The input string to be parsed
- The string used to parse input into partial strings
- The index of the partial to be extracted, commencing at one
- The partial string extracted from the inputstring
Extract the third element from a list of days separated by "/"
"Wed" := Params( "Mon/Tue/Wed/Thu/Fri", "/", 3)
Separate a number into its integer and decimal components
num_input := "204.168";
num_integer := Params(num_input, ".", 1);
num_decimal := Params(num_input, ".", 2)