Unit 'fpmkunit' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TConditionalString

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

String value with CPU and OS conditions

Declaration

Source position: fpmkunit.pp line 462

type TConditionalString = class(TCollectionItem)

public

  procedure Assign(); override;

  

Assign conditional string from another source

  function Match();

  

Check if string matches given CPU and OS

  property Value: string; [rw]

  

String value for this condition

  property OSes: TOSes; [rw]

  

Operating systems for which this string applies

  property CPUs: TCPUS; [rw]

  

CPU architectures for which this string applies

end;

Inheritance

TConditionalString

  

String value with CPU and OS conditions

|

TCollectionItem

|

TPersistent

|

TObject,IFPObserved

Description

TConditionalString represents a string value that can be conditionally applied based on target CPU architecture and operating system. This enables platform-specific configuration in build scripts.

The class provides matching functionality to determine if the string applies to a specific CPU/OS combination, making it the foundation for cross-platform build support.

See also

TConditionalStrings

  

Collection of conditional string values

TCpu

  

Supported CPU architectures for compilation

TOS

  

Supported operating systems for compilation


Documentation generated on: Dec 15 2025