Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional "or" doesn't work #22

Closed
aidenrrourke opened this issue Sep 18, 2018 · 2 comments
Closed

Conditional "or" doesn't work #22

aidenrrourke opened this issue Sep 18, 2018 · 2 comments

Comments

@aidenrrourke
Copy link
Contributor

opacity: if((@errorText) or (@warning), 1, 0); doesn't set the opacity to 1 when errorText is defined as true.

Strangely, opacity: if((@errorText) or (@warning), 0, 1); actually does the behaviour that I want.

@jean343 jean343 mentioned this issue Sep 19, 2018
jean343 added a commit that referenced this issue Sep 19, 2018
* Fix conditionals

* Adding support for nested conditionals

* Use the value when comparing nodes

* equality tests

* Test greater than
@jean343
Copy link
Owner

jean343 commented Sep 19, 2018

🎉 This issue has been resolved in version 1.4.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

@jean343
Copy link
Owner

jean343 commented Sep 19, 2018

You can update to 1.4.6, and the following will work for you

opacity: if(@errorText or @warning, 1, 0);

🎉

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

No branches or pull requests

2 participants