mumps.data()
Determines whether a MUMPS global node exists and/or has child nodes or data.
Arguments
Argument | Data Type | Required | Description |
---|---|---|---|
globalName | string | Yes | The name of the global to examine |
subscripts | array | Yes | An array indicating the subscripts to be examined. May be empty to examine the root node. |
Return Value
Returns a struct with the following boolean members:
- defined
- hasData
- hasSubscripts
Example
CFScript
var mumps = new lib.cfmumps.Mumps(); mumps.open(); var ddData = mumps.data("DD", [200, 1]); if(ddData.hasData) { writeOutput("<p>^DD(200,1) has data!</p>"); } mumps.close();
CFML
<cfset mumps = new lib.cfmumps.Mumps()> <cfset mumps.open()> <cfset ddData = mumps.data("DD", [200, 1])> <cfif ddData.hasData> <p>^DD(200,1) has data!</p> </cfif> <cfset mumps.close()>