IfThen function
Returns one of two strings, depending on a boolean expression.
Declaration
function IfThen(AValue: Boolean; const ATrue: string;
const AFalse: string='') : string; overloadArguments
AValue | Determines which of the two possibilities to take. |
ATrue | String to return if the expression evaluates as
|
AFalse | String to return if the expression evaluates as
|
Function result
Either
AFalse or
ATrue, depending on the expression.
Description
IfThen
returns
ATrue if
AValue is
True, and returns
AFalse if
AValue is false.Errors
None.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
