How can I check for multiple values in `where` at once?

To make it a bit more readable you can use the form selector.or(selector1, selector2, ...):

#show selector.or(
  raw.where(lang: "a"),
  raw.where(lang: "b"),
  raw.where(lang: "c"),
): it => {
  set text(red)
  it
}

and to generate the show rule from a list you can use an argument sink:

#let selectors = ("a", "b", "c").map(x => raw.where(lang: x))

#show selector.or(..selectors): it => {
  set text(red)
  it
}

(Welcome to the forum @the_kief ! I’ve slightly edited your question’s title to follow our guidelines.)

2 Likes