is_variable()

Returns true if a variable of the given name exists and false otherwise.

Signature

(since 0.52.0)

# Returns true if a variable of the given name exists and false otherwise
bool is_variable(
  str var,     # The variable to test
)

Arguments

The function is_variable() accepts the following positional arguments:

Name Type Description Tags
var str

The variable to test

The results of the search are