SmartDepotGroup - addCondition
SmartDepotGroup - addCondition
Description :
This command adds a new condition to a smart depot group. When you add a new condition, you must specify its operator type. For a complete list of available operator strings, see the SmartServerGroup : addCondition command.
This command returns a handle to the modified group.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
groupName | String | Fully qualified name of the smart group. |
propClassName | String | Property Class name to be used in the smart group condition. |
propName | String | Property name to be used in the smart group condition. |
operator | String | Operator string to be used in the smart group condition. |
propValue | String | Property value to be used in the smart group condition. |
Example
The following example shows how to add a condition that selects all depots whose descriptions contain "nsh" to a smart group called /root/allNSH
Script
SmartDepotGroup addCondition /root/allNSH "Class://SystemObject/Depot Object/NSH Script" "Description" "contains" "nsh"