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 trialAl Lu
UX Design Techdegree Student 15,801 PointsNot sure whats wrong
Here is my code
@if varibale-exists($font-url){
@import url($font-url);
}
4 Answers
Gabriel Tartaglia
41,581 PointsHi 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
10,288 Pointsאלון יא גברררררר
Al Lu
UX Design Techdegree Student 15,801 PointsThanks Gabriel
עידן אני רואה אתה עושה קירקס. אני כבר אגיד את זה לניק פטיט. :D
idan ben yair
10,288 Pointsהלו הלו תרגיע! חחח שיהיה לך צום קל אחי