$myNumber = 5; $color = ilUtil::switchColor($myNumber > 10, "green", "red"); echo "In this example, the switchColor function checks if `$myNumber` is greater than 10. If it is, it will return "green", otherwise, it will return "red". The resulting color value is then used to style a `My number is {$myNumber}";