HyperWorks Desktop

Condition_CreateCondition

Condition_CreateCondition

Previous topic Next topic No expanding text in this topic  

Condition_CreateCondition

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME


Condition_CreateCondition

 

 

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. See below.

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]

 

ERRORS


 

SEE ALSO


Condition_CreateCondition

ContentInterfaceList

ContentInterfaceList_size

hwLMStatus_GetMessage