Join the Webstudio community

Updated last month

Webstudio expression editor cheat sheet

At a glance

A community member shares a valuable trick using the !! operator in JavaScript, which they recently learned and found extremely helpful. They recommend the post for those who may have missed it last year. The comments discuss alternative approaches, such as using value == undefined comparison or the ternary operator, with some community members expressing a preference for these over the !! trick due to readability concerns.

Useful resources
I know it's already out there for long time, but still very valuable. The trick with !! I just learned and is extremely helpful. Maybe for people who might have missed this post last year, good one to read ๐Ÿ˜
Thanks @John Siciliano !
https://createtoday.io/posts/webstudio-expression-editor-cheat-sheet
O
R
J
3 comments
You could also use value == undefined comparison or whatever the value is when its empty, !! is really just da double negation from javascript, I wouldn't even recommend it as its less readable and cryptic
Yeah I used that back before there was the ternary operator ๐Ÿ™‚
Add a reply
Sign up and join the conversation on Discord