SmartComponentGroup - setMatchAll
SmartComponentGroup - setMatchAll
Description :
This command sets the Match All / Match Any value for a smart component group. Match All means that in order for a component to belong to this group, it must match all of the membership conditions defined for this group. Match Any means that a component can belong to this group if it matches at least one of the membership conditions.
This command returns a handle to the component group.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
groupName | String | Fully qualified path to the group. |
matchAll | Boolean | Set this variable to true if a component must match all conditions before it can join this group. Set this variable to false if a component can join this group if it matches at least one condition. |
Example
The following example shows how to set Match All to true for a smart group called /Location/test.
Script
SMARTGROUP="/Location/test"
MATCHALL="true"
# Now set match all
NEWGROUP_KEY=`blcli SmartComponentGroup setMatchAll $SMARTGROUP $MATCHALL`