[SOLVED] A good way to compress nested "if else" statements?

Another approach is to use objects / classes.

class Team {
  String code;
  int r, g, b;
  String title;
  String image;
  Team(String code, int r, int g, int b, String title, String image){
    this.code = code;
    this.r = r;
    this.g = g;
    this.b = b;
    this.title = title;
    this.image = image;
  }
}

Then you can add create class objects and add them to a hashmap

https://processing.org/reference/HashMap.html

like this:

HashMap<String,Team> hm = new HashMap<String,Team>();
Team tm = new Team("ad", 0, 51, 141, "Buffalo Bills Time", "bills");
hm.put("ad", tm);
// get the team later
Team selected = hm.get(finalChar); // "ad"
println(selected.title); // prints "Buffalo Bills Time"