this will produce a bug because "let" rescopes the variable to the if statement which results in "all" always being interpreted as a regular job filter :D
Dropping the "let" should fix the bug ...