SyntaxFix
Write A Post
Hire A Developer
Questions
At the risk of causing some cringing by purests and c# programmers, you can use multiple statements and else in a one-line if statement in VB. In this example, y ends up 3 and not 7.
i = 1 If i = 1 Then x = 3 : y = 3 Else x = 7 : y = 7