vb2Py - If

Contents of this page:

General

If statements are translated to their equivalent Python versions.

Default Conversion

VBPython

If Value = 10 Or Value = 20 Then
DoSomething
ElseIf Value = 30 Then
DoSomethingElse
Else
DontDoAnything
End If




if Value == 10 or Value == 20:
DoSomething()
elif Value == 30:
DoSomethingElse()
else:
DontDoAnything()

List of Options

There are no options specific to the If statement.