Hi @arctica112
I’m not fully understanding what you’re after – and this forum is really for this sort of topic (this is more of a general PHP question) BUT I think you just need to do something like this:
$amount = count(get_sub_field('table_forms')
this will give you the total number of items in your repeater. Then you can check that number to determine how many columns you’ll be needing.
Phil