View Single Post
Old 05-10-2019, 08:01 AM   #6
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,629
Default

So if I get it right:
You want to check all markernames, if they start with "Special 1" or "Special 200", right?
And your current strategy is, first you check all of them for "Special 1" and then all of them for "Special 200"?

In that case I would suggest the following strategy:

1) Check if a markername begins with "Special". Yeah, no number, only "Special".
2) If yes, you secondary-check for "Special 1" or "Special 200", else you got to the next marker.
That way, you don't check all markers twice.

Depending on what is more likely to happen, you should order the secondary-checks accordingly. So if "Special 200" appears more often, you check that first, then "Special 1".
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote