Skip to content

Using conditional expressions in properties. #562

Answered by ogoffart
drewhk asked this question in Q&A
Discussion options

You must be logged in to vote

We support the ternary operator like in C or JS:

background : white ? #eeeeec : #e9b96e;

I realize this is badly documented, so i'll improve on that.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@drewhk
Comment options

Answer selected by drewhk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants