Hi
how would I do this in a razortemplate?
<!--@If(Item.Id=1)--> <div class="item active"> <!--@EndIf-->
<!--@If(Item.Id!=1)--> <div class="item"> <!--@EndIf-->
Hi Hans
You would do like this:
@{
var classNames = "item";
if(GetInteger("Item.Id")==1){
classNames = "item active";
}
<div class="@classNames"></div>
Ok, thank you
regards Hans
You must be logged in to post in the forum