#401·annyang

Callback for Trigger method

Author: prasadkrn83Created Jul 23, 2019Updated Jul 23, 2019

As per the definition of the trigger method accepts a single string or an array of string and the first string that gets matched to the defined commands gets invoked.

  1. What happens if none of the given strings are matched? will annyang trigger a resultnomatch on each of the strings or only once at the the end?
  2. is there a way to stop resultnomatch to be triggered when the annyang trigger method is being called
  3. is there a way to have a call back to trigger when all the strings in the array has been attempted to be triggered?