Question: Error, invalid loop

How do I enter a nested for, if loops in Maple in multiple lines. I can enter the loops in multiple lines with no error message, while in the classical worksheet. But entering the same loop sequence in standard worksheet gives me "error, invalid loop" message after entering the first

for i from 1 to 100 do

statement . The error does not ocurr if I enter the for, if statements in one single line  

Please Wait...