The conditional `if()` function
Syntax: condition ? true value : false value.
The `if()` function lets you assign a property value based on a logical test. Its shape is similar to the ternary operator in JavaScript: `if( ? : )`.
That is especially useful for component states. You can define a variable such as `--size` and let `if()` decide the `padding`, `font-size` or `border-radius` without creating extra classes like `.btn--small` or `.btn--large`.
The important idea is that `if()` works best alongside custom properties, making CSS feel more programmable and less repetitive.