Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS Modular CSS with Sass Getting Modular with Mixins and Functions Sass Function Challenge

Not sure whats wrong

Here is my code

@if varibale-exists($font-url){
    @import url($font-url);
}

4 Answers

Gabriel Tartaglia
Gabriel Tartaglia
41,581 Points

Hi Alon!

The parameter passed to variable-exists() should be the name of the var without the $. Take a look at the sass documenation, it says:

The name of the variable to check. The name should not include the $.

P.S. Seems you made a little misspelling in your question.

idan ben yair
idan ben yair
10,288 Points

אלון יא גברררררר

Thanks Gabriel

עידן אני רואה אתה עושה קירקס. אני כבר אגיד את זה לניק פטיט. :D

idan ben yair
idan ben yair
10,288 Points

הלו הלו תרגיע! חחח שיהיה לך צום קל אחי