info.mailtraq.com > Management > Script Functions A-Z > Params() Params()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 )
- input
- The input string to be parsed
- separator
- The string used to parse input into partial strings
- index
- The index of the partial to be extracted, commencing at one
- partial
- 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) |