Problem Using "Once if Pattern Matches" Script Trigger

I have a situation where I want a script to execute on the first pattern match. Using "Once if pattern matches" appears to use the last pattern match. Is there a way to trigger only on the first pattern match? Thanks in advance. - Jeff

There's not a way by default.

There's not a way by default. Most of the time I need to write a script that runs after pattern is applied says

// Make sure there were matches
if (dataSet.getNumDataRecords()>0)
{
   // Isolate first record
   record = dataSet.getDataRecord(0);
   var1 = record.get("VAR_1");
   var2 = record.get("VAR_2");

   // Do stuff

}

There's not a way by default

That's very useful. Thanks!