Equal

Tests whether two values are equal using Jyro’s standard equality semantics.

Syntax

Equal(value1, value2)

Parameters

  • value1 (any): The first value to compare
  • value2 (any): The second value to compare

Returns

  • boolean: True if the values are considered equal

Description

Performs deep comparison for complex types including objects and arrays, and handles type coercion according to Jyro language rules.

Examples

var result1 = Equal(5, 5)                    # Returns true
var result2 = Equal("hello", "hello")        # Returns true
var result3 = Equal(5, "5")                  # Returns false (different types)
var result4 = Equal(null, null)              # Returns true

Back to top

Copyright © Mesch Systems. All rights reserved.