Help me change code

for(num.val=8;num.val<15;num.val++)
{
if(t[num.val].txt==“”)
{
tam.val++
}
it was wrong
help me repair it
thanks

if(b[num.val].txt==“”)
Use this(num.val must be component id)