variable_exists

variable_exists($name)

Check whether a variable with the given name exists in the current scope or in the global scope.

Examples:

$a-false-value: false;
variable-exists(a-false-value) => true

variable-exists(nonexistent) => false

Parameters:

  • $name (String) The name of the variable to check. The name should not include the $.

Returns:

  • (Bool) Whether the variable is defined in the current scope.
doc_Sass
2016-11-11 13:09:29
Comments
Leave a Comment

Please login to continue.