You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#2964 | @mirisuzanne
OMG, why you closed my issues!. You misunderstood what I meant.
$city: "New York";
$city: if($city=="New York", "Los Angeles", "New York"); // be able to write this...$city: if($city=="New York", "Los Angeles"); // ...like this.
Be possible to use the "inline if function" with 2 arguments.
If the condition was true, you want to do something, if it's not true, do nothing. I don't want to rewrite the $city with the same value because it's wrong.
// There is a big difference between this:@if$city=="New York" {
$city: "Los Angeles";
}
// and this:$city: if($city=="New York", "Los Angeles", "New York");
Another issue:
This is about one of your pull requests @mirisuzanne. I don't know if anyone sawed this problem or not. #2836 (comment)
The text was updated successfully, but these errors were encountered:
So the functionality you are requesting is already there. I don't think there is a reasonable way to make that implicit, because it is so contextual - but I can let someone else speak to that.
(yes, I saw the other issue - haven't had a chance to dig into it)
I don't want to use the third argument. So I prefer to use regular if statements rather than using this function to don't write the same value in my variable.
#2964 | @mirisuzanne
OMG, why you closed my issues!. You misunderstood what I meant.
true
, you want to do something, if it's nottrue
, do nothing. I don't want to rewrite the$city
with the same value because it's wrong.Another issue:
This is about one of your pull requests @mirisuzanne. I don't know if anyone sawed this problem or not.
#2836 (comment)
The text was updated successfully, but these errors were encountered: