Check out example codes for "if staements in delphi". It will help you in understanding the concepts better.
Code Example 1
// Illustrate the same, but with multiple actions IF 1 = 1 then begin ShowMessage('We now have'); ShowMessage('multiple lines'); end;
Learn ReactJs, React Native from akashmittal.com