Nested inline if statement
问题 In VB .Net it is possible to use inline If statements, like this if a Then ret = "A" Else ret = "Not A" I know it is also possible to nest these statements. I know this might not be good practice as readability drops down... If a Then If b Then ret = "A & B" Else ret = "A & Not B" Else ret = "Not A" which will be evaluated like this : If a Then If b Then ret = "A & B" Else ret = "A & Not B" End If Else ret = "Not A" End If Now if I remove the last Else statement, I get this : If a Then If b