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

MsgValueExist
Syntax
MsgValueExist(field);
field 
Description
Checks if the specified field contains a value.
Returns
1
0
Example
In the following examples, the Message contains the blocks blkA, blkB, and blkC structured as shown in the figure below.Click to enlarge
Example 89
The following script returns 1 if the field idType in the second instance of block blkA contains a value:
$fieldExists=MsgValueExists("blkA:2/idType");
 
Example 90
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=MsgValueExists("blkA:1/blkB:2/idType");
 
Example 91
The following script sample includes a counter to specify the N:th instance of block blkA:
...
$counter = 1;
$fieldExists=MsgValueExists("blkA:" + $counter +"/blkB:2/idType");
$counter++;
...
 
 
OpenText StreamServe 5.6 Updated: 2013-03-01