Sign in Join
FPDoc Onlineexperiment

IfThen function

In unit Math

Return one of two values, depending on a boolean condition.

Declaration

pascal
function IfThen(val: Boolean; const iftrue: Integer; 
 const iffalse: Integer=0): Integer; overload

Description

ifthen returns iftrue if val is True, and iffalse if val is False.

This function can be used in expressions.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.