lundi 6 décembre 2021

Execute all else if blocks on visual basic

I'm working in visual basic on visual studio 2019. There is a way to execute all ElseIf blocks even if the first "if" or one of the precessor were true? if is not possible with the ElseIf, there is any other command I could use? The final idea and the explanation of why I can't just do separated Ifs is because I need to give a error message if all the statements were false, and I don't know how to group them without the ElseIf command, so this is the only idea I have in mind right now to do so.

So, this is the ElseIf structure, it stops when it finds one of this statements true

If(boolean_expression 1)Then ' Executes when the boolean expression 1 is true ElseIf( boolean_expression 2)Then ' Executes when the boolean expression 2 is true ElseIf( boolean_expression 3)Then ' Executes when the boolean expression 3 is true Else ' executes when the none of the above condition is true End If

So, I want to execute every single ElseIf no matters if the predecessor was true of false. I hope you can help me resolve this, thanks!

1 commentaire:

  1. Betfair | Casino & Sportsbook Review
    Betfair 군산 출장샵 Review: Betfair is the biggest bookmaker with great betting 속초 출장마사지 You'll see a 동해 출장마사지 variety of bets, 당진 출장샵 bonus and much more. Read 부천 출장마사지 our Betfair

    RépondreSupprimer