Delphi's IfThen function returns one of two values, depending on the evaluation of an expression.
delphi.about.com