s_isInCommaList

Top 

 

Examines whether a value in a comma-separate list exists, or not. Besides, is numerical unrelevant whether the single values separate by comma or Alphabestich, or combined sign chains are.

Parametre

<Sign chain>

The sign chain too in request can be alphabetical, numerical or alphameric.

 

<List>

The comma-separate list which should be checked for the available being of the "sign chain" in request.

Syntax

s_isInCommaList (<sign chain> <list>)

Return value

If the value (the sign chain) in the list available is the figure 1 is returned. If the value is not in the list, is the return value 0

 

Example

Command line inputs:

Echo s_isInCommaList ("Heinz" "Peter, Franz, Bernd, Otto, Heinz")

1

 

or

 

Echo s_isInCommaList ("Gabi" "Peter, Franz, Bernd, Otto, Heinz")

0

See also

s_match