CountChars Function

Counts characters in a string. Can be used to test for mis-matched parentheses or brackets in an expression

Arguments

Number Type Compulsory Default Description
1 string Yes String to count
2 string Yes Characters to count

Returns

Return type: real array

Each element in the array correspond to the character in the corresponding location in arg 2 and holds the count of that character in the input string.