Skip to content

Null not being treated as false for if statements#161

Closed
wonderslug wants to merge 3 commits intoleafo:masterfrom
wonderslug:master
Closed

Null not being treated as false for if statements#161
wonderslug wants to merge 3 commits intoleafo:masterfrom
wonderslug:master

Conversation

@wonderslug
Copy link

Howdy,

And into this issue trying to use Bourbon with scssphp. Scssphp is not recognizing the null keyword passed in to the if statement as a false. This is handled correctly with the ruby sass implementation. I added a small fix on the lib_if to check for the null case as well as the false case. I also added as small test to show the issue.

@robocoder
Copy link
Collaborator

IIRC there's an isTruthy() function. Maybe we can leverage that...

@wonderslug
Copy link
Author

Good call. isTruthy is doing the same. Moved to that.

@robocoder
Copy link
Collaborator

Merged and squashed. Thanks.

@robocoder robocoder closed this Apr 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants