If Then else
The if statement can return two different values. It is important that these two values are of the same type; otherwise, the compiler will return an error:
if a > 10 then
"important value";
else
"low value";
end;
The if statement can return two different values. It is important that these two values are of the same type; otherwise, the compiler will return an error:
if a > 10 then
"important value";
else
"low value";
end;