for loop not working

Could someone explain why this is not working on my esp8266 (nodemcu)? it always shows that maxValue is 1.

  String r = "3";
  String g = "4"; //example numbers (normally get from server)
  String b = "5";
  int r_int = r.toInt();
  int g_int = g.toInt();
  int b_int = b.toInt();
  int maxValue = 1;
  int biggest[3] = {r_int, g_int, b_int};
  for (int t; t < 3; t++) { 
    if (biggest[t] > maxValue) {
          maxValue = biggest[t];
  
    }
  }

for (int t;oops

It should be

for (int t = 0; ......

...R

thanks was looking everywhere for the fault and oversaw the simplest

AlexMug:
thanks was looking everywhere for the fault and oversaw the simplest

Welcome to the club. :slight_smile:

...R