Added ability to specify And/Or for wole parameter list in BuildQuery

Added ability to specify And/Or for wole parameter list in BuildQuery.
Function now takes an array of bools instead of a bool.