Cut "segway" present in the title if "mashup" or "transition" are present

Hi, pardon my ignorance, I appreciate your time. Is my the first time .

this is the correct filter
%title% HAS "segway" AND %title% HAS "Transition" OR %title% HAS "segway" AND %title% HAS "mashup"

how can put this filter in a Action?
i want cut "segway" present in the title if the words "mashup" or "transition" are also present.

I tried following the FAQ and examples but I didn't find a solution or anything similar.
thanks

You can not set a filter in an Action.

You have to fill your filter manually as in your screenshot and then execute your Action for the selected tracks.

You could try to use the scripting command $strstr(x,y) to check if your filter words are present in a track TITLE and only if found $replace() "segway" with nothing.

thanks for the timely response, does this mean I have to manually act on the filtered names?

Yes.
First activate/select/use the Filter F3.
Then select all filtered tracks CTRL+A.
Then execute your Action manually.

You could use the scripting function $if() etc.

but I wonder if that is really the most straightforward way as I assume that such manipulations like cutting a specific word happen only very few times after the basic cleanup has been performed.
And for the few times it is much easier to apply a filter and then execute an action on the filtered file than editing an action with complicated conditions and then apply it on more files than necessary.