Last updated 21 days ago
Was this helpful?
This function returns true if the key exists in the query
Uses the member function syntax
Result: true
myQuery = queryNew( "custID,custName" ); writeDump( queryKeyExists( myQuery, "age" ) ); writeDump( queryKeyExists( myQuery, "custName" ) );
QueryKeyExists(query=[query], key=[string])
query
true
The query to check for the key
key
string
The key to check for
news = queryNew( "id,title", "integer,varchar", [ { "id" : 1, "title" : "Dewey defeats Truman" }, { "id" : 2, "title" : "Man walks on Moon" } ] ); writeOutput( news.keyExists( "title" ) );