same (Object control)

Checks if two values have the same schema. Doesn’t work for recursive or very deep structures.

Arguments

value0
and
value1
are the values to compare.

Return values

condition
is TRUE if both values have the same schema, FALSE otherwise.

Example

a: {x:1; y:2; }; b: {x:3; y:4; }; c: {x:3; z:4; }; d: {x:3; y:4.0; }; a b same print LF print a c same print LF print a d same print
Output:
TRUE FALSE FALSE