Available for: Content Management Server
Task: Allows you to search for all channels for which the value of the specified parameter contains the specified string.
Syntax:
channel where {parameter value}
Function parameters: (If no parameter is specified, the command outputs all channels.)
parameter
specifies the name of the parameter
whose value is to be searched for or specifies the number of hits. The
following parameters are allowed:
maxResults
specifies that
value
is a number that limits the number of hits.
If number is less than or equals zero, the number of hits is
unlimited.name
specifies that the names of the
channels are to be checked for correspondence with
value
.namePrefix
specifies that the names are
to be compared from the beginning with value
.value
contains the value of the corresponding
parameter.Return value if successful: the list of names of the matching channels (stringlist)
Necessary permissions: no restrictions
Example:
CM>channel where namePrefix weather weather weather.europe weather.europe.france weather.europe.germany