I'm trying to do something like
string heading = $"Weight in {imperial?"lbs":"kg"}"
Is this doable somehow?
You should add () because : is used also for string formatting:
()
:
string
string heading = $"Weight in {(imperial ? "lbs" : "kg")}";