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

MatchCol
Syntax
MatchCol(num_col);
num_col 
Description
Returns the content of a specified column. Only available within scripts in StreamIN description files.
Returns
A string containing the contents of the column.
Example
From a RecordIN Description file (*.dsc):
Record "INVOICE" 1 ChrSep ";"
newevent "SalesInvoice";
match script
{
if(matchcol(1)="0001")
return 1;
else if (matchcol(1)="0002")
return 1;
else
return 0;
}
fields
"Type; // 1
"Invoice number";
"Page number";
.....
end
end
Result:
If the incoming data were:
0001;93127;23.00;990321……
or
0002;92345;12;40;000101……
The SalesInvoice Event would be triggered.
OpenText StreamServe 5.6 Updated: 2013-03-01