mediawiki-extensions-AbuseF.../tests/parserTests/equals-to-any.t
Daimona Eaytoy 71f375f19a Add equals_to_any function
Introduce a new function which can be used to group multiple comparisons
in a single condition. In particular, equals_to_any(S, A, B) is the
equivalent of S === A || S === B. This is especially useful in checking
for multiple namespaces, as proposed in the Community health initiative.

Change-Id: I9dcfe303eb5e51e1882fe4a65fa876aa93db7686
2018-04-25 23:12:19 +00:00

1 line
78 B
Raku

equals_to_any("foo", "bar", "foo", "pizza") & equals_to_any(15, 3, 77, 18, 15)