This will be a bit more code, but please give the following a try:
new Func(() => {
const int TemperatureLimit = 85;
var FormatTemp = new Func((string tempString) => {
if (string.IsNullOrEmpty(tempString) || tempString == "0")
return "";
else
return (Convert.ToInt32(tempString) >= TemperatureLimit ? "" + tempString + "": tempString);
});
return "Chip: " + FormatTemp(stats.ChipTemp1) + "/" + FormatTemp(stats.ChipTemp2) + "/" + FormatTemp(stats.ChipTemp3) + "/" + FormatTemp(stats.ChipTemp4) + " °C";
})()
but there was one nuance that the "/" sign at the end, in the end I get the following