Errorerror error unable to understand logic

what TA is doing in if(nums[i]!=0) then flag=1 and break;

what does that mean can anyone please elaborate and explain
writing code retered
pleae\