Can't add filter rules with FilterRule.ByRuleType

I looked into that a determined it’s way above my head. I decided to add a element that I’ll delete after I make the filter. I’ve been able to create the filter but it is still set to OR and I can’t seem to set the value to “Yes”.