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

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