EqualsValue

Native Pascal, workflow preparation

Description

Compares this value with Other for deep structural equality. Kinds and child counts must match; object members are paired by name, so member order is irrelevant, while array order is significant.

Numbers compare through a canonical numeric form, so equivalent spellings such as 1, 1.0 and 10e-1 are equal; strings and booleans compare by text. Comparing against Nil yields False.

Syntax

Delphi

Function TPLWorkflowJSON.EqualsValue(Other: TPLWorkflowJSON): Boolean;

Parameters

OtherTree to compare against; Nil returns False

Return values

TrueThe trees are structurally equal
FalseThe trees differ, or Other is Nil

Remarks

The comparison enforces the same depth, node and character work budgets as Clone; a budget failure raises an exception.

See also

WorkflowDataTools, ProbeWorkflowRequest