When I did my research about who asks or mentions “Conditional CSS”, I found more than one time that media queries are the closest thing to an “if” statement in CSS. .section{display:flex;flex-direction:column;}@media(min-width:700px){.section{flex-direction:row;}} If the viewport...
The second problem is the logic in your conditional if statement. I understand the logic you are using but it's not the way it's actually being evaluated. You were right that it never seems to evaluate the second half of the expression. The way a conditional || (OR) statement works, ...
@Html.EditorFor(m => m.EnumValue) renders to string identifier by default, in contrast to @Html.EditorFor("EnumValue", (int)Model.EnumValue) statement, where value is explicitly casted to int. The flag setup should reflect that behavior, to have the internal JS model context deserialized ...