SmartTemplateGroup - setMatchAll
SmartTemplateGroup - setMatchAll
Description :
This command sets the Match All / Match Any value for a smart template group. Match All means that in order for a template to belong to this group, it must match all of the membership conditions defined for this group. Match Any means that a template can belong to this group if it matches at least one of the membership conditions.
This command returns a handle to the template 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 template must match all conditions before it can join this group. Set this variable to false if a template 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 SmartTemplateGroup setMatchAll $SMARTGROUP $MATCHALL`