- From: jimmyfrasche via GitHub <sysbot+gh@w3.org>
- Date: Tue, 04 Feb 2020 19:17:29 +0000
- To: public-css-archive@w3.org
So if you have X and you want to add Y when `A < B && B >= C || D != E` with those three functions one way to write it would be ``` X + Y * lesser(A, B, 1, 0) * sign( sign(greater(B, C, 1, 0) + equal(B, C, 1, 0)) + calc(1 - equal(D, E, 1, 0)) ) ``` With if() it's a bit more straightforward ``` X + Y * if(A < B and B >= C or D != E) ``` (I'm assuming that `and` has greater precedence than `or`.) If I messed something up but that just proves my point that it's too difficult :smile: -- GitHub Notification of comment by jimmyfrasche Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4731#issuecomment-582070616 using your GitHub account
Received on Tuesday, 4 February 2020 19:17:32 UTC