Hi Jon,
This looks like a job for inject:into: which you can use to construct the compound OR statement.
You could do something like this
| init values currentRowNumber |
currentRowNumber := !value.
values := #(10 20 30 40 50 60).
init := currentRowNumber eq: (values at: 1).
(2 to: values size) inject: init into: [:expr :i |
expr \/ (currentRowNumber eq: (values at: i))
].
Which evaluates to:
(!Value eq: 10) \/ (!Value eq: 20) \/ (!Value eq: 30) \/ (!Value eq: 40) \/ (!Value eq: 50) \/ (!Value eq: 60)