delph if statement code example
Example 1: if staements in delphi
// Illustrate the same, but with multiple actions
IF 1 = 1 then
begin
ShowMessage('We now have');
ShowMessage('multiple lines');
end;
Example 2: if then else in delphi
j := 50;
if j >= 0 then
if j = 100 then Caption := 'Number is 100!'else
Caption := 'Number is NEGATIVE!';v