2026 Community Survey results are here! See how the Craft CMS community works. results are live!
What is a ternary operator?
The three-part ternary operator helps us write compact conditionals. Is it easier or harder to read than a standard conditional expression? Let's learn the basics about it.