How does AWK's pattern-action model process an input record?
A condition can never exclude a record from processing.
It always runs the action first and tests the pattern afterward.
It tests the pattern or condition and runs the associated action only when the record matches.
It tests the filename once and never examines individual lines.