githubEdit

ListValueCount

returns a count of the number of occurrences of a value in a list

Method Signature

ListValueCount(list=[string], value=[string], delimiter=[string], includeEmptyFields=[boolean], multiCharacterDelimiter=[boolean])

Arguments

Argument
Type
Required
Description
Default

list

string

true

The list to be searched.

value

string

true

The value to locale

delimiter

string

false

The list delimiter(s)

,

includeEmptyFields

boolean

false

Whether to include empty fields in the search

false

multiCharacterDelimiter

boolean

false

false

Examples

Simple Example

Counts instances of 'foo' in the list, ignoring case

Run Examplearrow-up-right

listValueCountNoCase( "foo,bar,lorem,Foo,ipsum", "foo" );

Result: 2

Example with Custom Delimiter

Counts instances of 'foo' in the list with a custom delimiter, ignoring case

Run Examplearrow-up-right

Result: 3

Additional Examples

Run Examplearrow-up-right

Last updated

Was this helpful?