"active" is boolean (logical true or false). You should check "active" to see if trigger is active.
Code:
if (shortName.Equals("attackConvoyDelay") && active)
means: if trigger name is "attackConvoyDelay" AND (&&) this trigger is active, then do something...