How can I add to a List<> many toggle group selected values at same time?

Hello,

I have 4 groups, each group contains 4 toggle group with 2-2 options.
Every option value is 0 or 1.

179560-toggle-groups-values-to-a-list.jpg

After I choose one value from all toggle groups , i want to add every choice to a list with a button for example.
I spent hours with it, but i didn’t find a good solution.
How can I do it correctly (Unity version 2019.4.15)?

Thanks,
Roland

I found a similar question with good answers on stackoverflow:

https://stackoverflow.com/questions/52739763/how-to-get-selected-toggle-from-toggle-group/52739916

I believe you can adjust the solutions offered there to fit your needs.