</pre>
===Defining VAR Variables===
Using var javascript variables to define values to be evaluated within the SmartCheck Validation.
<pre>var countWatch="[#(?object=activity::criteria=typename='Watchlist Scan' and statusname='Scan Run')~count(eventid)~#]";
if(countWatch=="0")
{result.isPassed=false;
result.addMsg('Please run a watchlist scan.');
}</pre>
==See Also==