title: syntax error, unexpected '=', expecting IDENTIFIER
body: <p>I'm creating a sudoku game in verilog(2001) to eventually be put onto an FPGA, I found code for it in java and have been trying to convert it but have run into some errors.
  Here's the link for the java code
  www.geeksforgeeks.org/program-sudoku-generator<br>
  I have very little verilog experience and am learning as I go. </p>
  
  <pre><code>task automatic removeKDigits()  
      reg count = K; 
      while (count != 0) 
      begin 
          integer cellId = randomGenerator(N*N-1); 
  
          // System.out.println(cellId); 
          // extract coordinates i  and j 
           i = (cellId/N); 
           j = cellId%9; 
  
          // System.out.println(i+" "+j); 
          if (mat[i][j] != 0) 
            begin 
              count = count-1; 
              mat[i][j] = 0; 
            end 
         else
            count=count;
      end 
  endtask 
  </code></pre>
  
  <p>K is the amount of digits to be removed from the mat[i][j] board, N=9 since its a 9x9 sudoku board.  For the lines containing "count=count-1" and "count=count" I'm getting the error<br>
  syntax error, unexpected '=', expecting IDENTIFIER<br>
  what does it mean? how do I fix it?</p>