Motion theme template filter filter effect

I want to implement a custom filtering function, but my theme defaults to a single-condition filtering effect. I want to know how to modify the code file to achieve the effect I want?

Below is my screenshot. The first screenshot is the effect of my current theme, the second image is the effect I want to achieve, and the third screenshot is the filter effect code of my current theme.

Please help me thank you.