has_env

has_env

has_env

Function

Determine whether the specified variable exists in the user's global environment.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
nameStringNo''The name of the user global variable to check.

Return value

TypeDescription
BoolReturns true if the user global variable exists, otherwise returns false.

Example

Notes

  • Only check the global variable table.