I have this function(var1) which compares var1 with var2. First it tells me that there\'s an undefined index inside the function (where I use var1 inside the if), so I indic