Posted in
Windows Server |
No Comment | 1,224 views | 02/08/2015 18:51
Just a reminder for myself :)
@(userRole == 0 ? "Yes" : "No") |
@(userRole == 0 ? "Yes" : "No")
Also you can use this like “else if”:
@(userRole == 0 ? "Yes" : userRole == 1 ? "Yes" : "No") |
@(userRole == 0 ? "Yes" : userRole == 1 ? "Yes" : "No")
You can use this statement in div tags without problem.