Checkbox selection

Good day, I want to create a checkbox list that users need to “select 3 to personalize” their feed. i want the continue button to change color only when 3 on more of the options in the list is selected. i am not sure what blocks to use.

Assistance would be appreciated.

Here’s an algorithm:

```

Set numBoxesChecked to 0

When checkbox value changes
   if newValue = true
      Change numBoxesChecked by 1
   elseif newValue = false
      Change numBoxesChecked by -1    

When continue button is pressed
   if numBoxesChecked ≥ 3
      change scene
   else
      alert: "Please select at least 3 options"