Script functions reference > Script functions in alphabetical order > M > MsgProcValueExist

MsgProcValueExist
Syntax
MsgProcValueExist(field);
field 
Description
Checks if the specified field contains a value.
Returns
1
0
Example
In the following examples, the Process contains the blocks blkA, blkB, and blkC structured as shown in the figure below.Click to enlarge
Example 86
The following script returns 1 if the field idType in the second instance of block blkA contains a value:
$fieldExists=MsgProcValueExists("blkA:2/idType");
 
Example 87
The following script returns 1 if the field idType in the second instance of block blkB in the first instance of block blkA contains a value:
$fieldExists=MsgProcValueExists("blkA:1/blkB:2/idType");
 
Example 88
The following script sample includes a counter to specify the N:th instance of block blkA:
...
$counter = 1;
$fieldExists=MsgProcValueExists("blkA:" + $counter +"/blkB:2/idType");
$counter++;
...
 
OpenText StreamServe 5.6 Updated: 2013-03-01