IsQuery()
Determines whether value is a query.
IsQuery( value=any );
Returns: Boolean
Examples
testVar = "Hello World";
// Returns false as it is not a query.
dump(IsQuery(testVar));
<span class="nv">testQuery</span> <span class="o">=</span> <span class="nf">QueryNew</span><span class="p">(</span><span class="s1">'col1'</span><span class="p">);</span>
<span class="c">// Returns true as it is a query.</span>
<span class="nf">dump</span><span class="p">(</span><span class="nf">IsQuery</span><span class="p">(</span><span class="nv">testQuery</span><span class="p">));</span>
See also
- Queries
- Decision logic
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)