Can a C# tertiary conditional statement be used in a template? I tried, but get errors in the component design display...but it works at runtime. Something like this:
<Template Context="data">
@((data.sensorType >= 0) && (data.sensorType < sensorTypes.Count) ? sensorTypes[data.sensorType].desc : "")
</Template>
If I change this to use "if else" it works at both designtime and runtime.