}</pre>
To trigger when the value is selected, use '!=-1'. This would normally be used in combination with another field for validations.
===At least one role is selected on a contact===
<pre>if('@rolelist@' == "")
{result.isPassed=false;
result.addMsg('At least one role must be selected.');
}</pre>
===To include other scripts into a SmartCheck script:===