Exists

Tests whether a value exists (is not null) within the Jyro type system.

Syntax

Exists(value)

Parameters

  • value (any): The value to test for existence

Returns

  • boolean: True if the value is not null, false if null

Description

Provides a convenient way to check for the presence of meaningful data before performing operations that require non-null values.

Examples

var result1 = Exists("hello")      # Returns true
var result2 = Exists(42)           # Returns true
var result3 = Exists(null)         # Returns false
var result4 = Exists(array [])     # Returns true (empty array exists)

Back to top

Copyright © Mesch Systems. All rights reserved.