IF THEN ELSE expression Example III |
Smart pascal source code
var b := if False then True; WriteLn(b); var i := if b then 1; var f := if b then Pi; WriteLn(IntToStr(i)); WriteLn(FloatToStr(f)); WriteLn((if b then 'bug') + '!'); {<<< RESULT - CONSOLE LOG >>> ----------------------------- False 0 0 ! ----------------------------- {<<<<<<<<< THE END >>>>>>>>>}