Logo

Programming-Idioms

History of Idiom 131 > diff from v40 to v41

Edit summary for version 41 by silver-dragon:
New VB implementation by user [silver-dragon]

Version 40

2019-09-27, 20:50:15

Version 41

2019-09-30, 19:20:44

Idiom #131 Successive conditions

Execute f1 if condition c1 is true, or else f2 if condition c2 is true, or else f3 if condition c3 is true.
Don't evaluate a condition when a previous condition was true.

Idiom #131 Successive conditions

Execute f1 if condition c1 is true, or else f2 if condition c2 is true, or else f3 if condition c3 is true.
Don't evaluate a condition when a previous condition was true.

Extra Keywords
else switch case
Extra Keywords
else switch case
Code
If c1 Then
    f1()
ElseIf c2 Then
    f2()
else c3 Then
    f3()
End If