Array function is not working [SOLVED]

@ arduino_new
Yes! I've tried doing the (sonar[0].ping_cm <= 57) and that works... but only for sonar 0, none of the other sensors. I just can't figure out how to include ALL 5 of my sensors.
I've tried:

  • [0][1][2][3][4]
  • [0-4]
  • [0,1,2,3,4]
  • [5]