Based on your requirements you could create a visibility map(object) that will contain field names and boolean values to decide if field should be shown.
For example map:
{
"fieldA": true,
"fieldB": false
}
Visibility logic for your input fields could look like:
in hindsight this is obvious but for me it didn’t click until I used a print block on the repeater data item and saw the field names and their values
The second thing is the context block list at the top of the logic page is a horizontal scroll bar. which I did not see at all and would not have looked for until your post showing the “data repeater item”
the scroll bar is really hard to see, just a slightly darker color. After I found that and scrolled all the way to the right did I see the repeater context block