System.Contains - Manhunter07/MFL GitHub Wiki

Declaration

function Contains(Value: System.Struct, Member): System.Boolean = \built-in\

Description

The Contains function in the System package checks if a structured value passed as argument for Value contains a member by value. If there is a member with that value, the function returns True. If not, it returns False.

Remarks

The second argument when calling Contains should be:

When the function checks for a member value, the following rules apply:

  • If the structure is empty ("", [] or {}), Contains always returns False
  • If the data type of Member is not supported as member type for Value, Contains returns False and no exception is raised

See also