Unable to understood the 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