C# interpolated string with conditional-operator [duplicate] February 13, 2023 by Tarik You need to put the string in parentheses within {}, so: {(1 == 1 ? "yes" : "no")}.