PDM API Search: Using And/Or criteria for file variables

I need to execute a search as part of an add-in I am writing, and am trying to nest some AND/OR requirements for file variables into the search (see below), just like I can in the default "Complete Search" card. Is there a way to use the IEdmSearch5.AddVariable method to do this?

Thanks,

Kyle

SolidworksSolidworks Pdm/enterprise Pdm