You add a checkbox with the ID for the record set as the value into your repeated region. Make sure the name ends with [] (that tells php that it can have more than one value). Then use DataAssist search on the compare results page with a type list comparison passing the field name (without the brackets) and that should do it.