TIAContains

From SCAR Divi Manual
Revision as of 09:37, 24 October 2011 by Freddy (talk | contribs) (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 =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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