Sign in Join
FPDoc Onlineexperiment

TFPExprIdentifierDef.AsBoolean property

Member of TFPExprIdentifierDefpublicIn unit fpExprPars

Get identifier value as boolean

Declaration

pascal
property AsBoolean: Boolean read GetAsBoolean write SetAsBoolean;

Description

The AsBoolean property returns the identifier's value converted to a boolean value. If the identifier represents a variable, it retrieves the current value; if it represents a function, it calls the function and returns the result converted to boolean format.

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