1. I want to compare some class, talent pairs so I set up an array in a table.

     tbl = {
      { "warlock", 1 },
      { "warrior", 3 },
      { "shaman", 2 },
     }
    
     local c = "shaman"
     local t = 2
    

    I want to do a compare like:

    if c == tbl[i].??? and t == tbl[i].??? then

  2. I want to compare some class, talent pairs so I set up an array in a table.

     tbl = {
      { "warlock", 1 },
      { "warrior", 3 },
      { "shaman", 2 },
     }
     
     local c = "shaman"
     local t = 2
    

    I want to do a compare like:

    if c == tbl[i].??? and t == tbl[i].??? then

    if c == tbl[i][1] and t == tbl[i][2]