SyntaxFix
Write A Post
Hire A Developer
Questions
userType = (user.Type == 0) ? "Admin" : (user.type == 1) ? "User" : "Admin";
should do the trick.