title: Progress if statement
body: <p>I'm a progress noob, actually having problem with basic blocks. </p>
  
  <p>Below the issue is in my if else statement. It works fine when its just if, then, else then, but when I want to put in more than one statement into the if portion, I have to put it in a block, so I'm using if, then do: else, then do: but these aren't working for me. Any obvious errors you can see? My error message is **Colon followed by white space terminates a statement. (199)</p>
  
  <pre><code>INPUT FROM "r:\_content\stephen\4gl apps\dpl\output.csv".
  REPEAT:
    ASSIGN i_cntr = (i_cntr + 1).
    myRow = "".
    IMPORT DELIMITER ',' myRow.
  
    IF myRow[5] &lt;&gt; "" THEN DO:
        /*change this to assign 2 rows - 2 creates - 2 sets of four*/
        c_fname = myRow[1].
  
        MESSAGE 
        c_fname SKIP
        myRow[2] SKIP
        myRow[3] skip
        myRow[4] skip
        myRow[5] SKIP
        i_cntr
        VIEW-AS ALERT-BOX INFO BUTTONS OK.
     END./*end of if, then do:*/
     ELSE IF myRow[5] = "" THEN DO:
     MESSAGE 
     myRow[1] SKIP
     myRow[2] skip
     myRow[3] skip
     myRow[4] skip
     i_cntr
     VIEW-AS ALERT-BOX INFO BUTTONS OK.
  END./*end of else if, then do:*/   
  END./*end of repeat*/
  </code></pre>