In my controller, I have a built-in if statement:
ViewBag.NameSortParam = If(String.IsNullOrEmpty(sortOrder), "Name desc", "")
In my opinion, I can not use the built-in if:
@Code If(True, true, true) End code
It says, "If you need to finish using End End If." Why can't I use the inline if here? Thanks.
user1477388
source share