Condition_CreateCondition
Create a condition to be queried using ExecQuery API.
Syntax
Condition_CreateCondition <name> <value> <operator>
Type/Class
iQuery
Description
To create a condition to be queried using ExecQuery API.
- name
- Type of metadata to search for
- value
- value to search
- operator
- Integer.
- 0
- Equals
- 1
- Not equals
- 2
- Less than
- 3
- Less than or equal to
- 4
- Greater than or equal to
- 5
- Greater than
- 6
- Wildcard (only for strings)
Examples
set qryhandle [$gdm GetQuery]
# Add condition to search for metadata
set condition [Condition_CreateCondition $mdnameCAD $value $operator]
set condition1 [Condition_CreateCondition $mdnamehm $value $operator]
iQuery_AddCondition $qryhandle $condition
iQuery_AddCondition $qryhandle $condition1
set clist [ContentInterfaceList]
set status [$gdm ExecQuery $qryhandle $clist]