add class in <tr/> with alternative evaluation