XML Script logo
Function chkref
Name

chkref

Returns

number

Parameter count

2

Parameter 1

string, a string

Parameter 2

find, a string

Description

This function interprets 'string' as a list of whitespace-separated values and checks to see whether any of these values matches 'find'. It returns 1 if there is a match and 0 if not. This function is useful for looking up ID values in a string of IDREFS.

Examples of use

                                
                        

XML Script homepage | Documentation home | XML Script docs | Command list | Function list | X-Tract docs

X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited
© Copyright 1998-2000 DecisionSoft Limited