Determines whether a value is a query.

isQuery(value) → returns boolean

isQuery Argument Reference

value string

Examples sample code invoking the isQuery function

Create and populate a query and output the 'name' column as a list if it is a valid query

names = queryNew( 'name','varchar' );
queryAddRow( names );
querySetCell( names,'name','Seth' );
queryAddRow( names );
querySetCell( names,'name','Jen' );
if( isQuery( names ) ) {
   writeOutput( valueList( ) );

Fork me on GitHub