Like C and other programming languages, 20-sim does not recognize white space (spaces and tabs, carriage returns) except in a string. We recommend that you use white space to make your model easier to follow. For example, the following model is dense and difficult to read:
variables
real y,u;
equations
y = step(1);
u = -step(1);
if time > 5 then y = -ramp(1); u = ramp(1);
else y = ramp(1); u = -ramp(1); end;
Adding white space with indentation makes the same code much easier to read:
variables
real y;
real u;
equations
y = step(1);
u = -step(1);
if time > 5 then
y = -ramp(1);
u = ramp(1);
else
y = ramp(1);
u = -ramp(1);
end;