if (x>=0)   % you can  have a semicolon (;) after the condition or not 
   y=x;     % <--- This is a comment
else        % File s6abs0.m    contains this example
   y=-x;
end
