How to use the ternary operator inside an interpolated string?

According to the documentation: The structure of an interpolated string is as follows: { <interpolationExpression>[,<alignment>][:<formatString>] } The problem is that the colon is used to denote formatting, like: Console.WriteLine($”The current hour is {hours:hh}”) The solution is to wrap the conditional in parenthesis: var result = $”Descending {(isDescending ? “yes” : “no”)}”;

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)