> if (tids[i].fields[f]=true)
a single "=" is an *assignment* operator, so that
tids[i].fields[f]=true
sets the value of the indicated field to TRUE
a double "==" is a *comparison* operator, so that
tids[i].fields[f]==true
results in a TRUE or FALSE expression based on the current field value
-e