Logic building problem my mind is not working

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
please check