Difference between revisions of "TIAContains"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function TIAContains(const TIA: TIntArray; const Int: Integer): Boolean; </source> ==Availability== SCAR Divi 3.28 > Current =...")
 
(No difference)

Latest revision as of 09:37, 24 October 2011

Definition

function TIAContains(const TIA: TIntArray; const Int: Integer): Boolean;

Availability

SCAR Divi 3.28 > Current

Description

Returns true if the given TIntArray TIA contains the given integer Int.

Example

begin
  WriteLn(TIAContains([1, 2, 3], 3));
  WriteLn(TIAContains([1, 2, 3], 4));
end.

Output:

1
0

See Also