help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions] Reference for unit 'math' (#rtl)

ifthen

Return one of two values, depending on a boolean condition

Declaration

Source position: line 0

function ifthen(

  val: Boolean;

  const iftrue: Integer;

  const iffalse: Integer = 0

):Integer;

function ifthen(

  val: Boolean;

  const iftrue: Int64;

  const iffalse: Int64 = 0

):Int64;

function ifthen(

  val: Boolean;

  const iftrue: double;

  const iffalse: double = 0.0

):double;

function ifthen(

  val: Boolean;

  const iftrue: String;

  const iffalse: String = ''

):String;

Description

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

This function can be used in expressions.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505