Checking if a variable is defined in SASS
For Sass 3.3 and later As of Sass 3.3 there is a variable-exists() function. From the changelog: It is now possible to determine the existence of different Sass constructs using these new functions: variable-exists($name) checks if a variable resolves in the current scope. global-variable-exists($name) checks if a global variable of the given name exists. … … Read more