Visual Basic Syntax
Variables are pre-declared in Visual Basic using As variable_type.
Conditional operators like
If condition
... do something ...
Else
... do some-other-thing ...
End If
give different options for different conditions.
For instance:
If age > 18
MsgBox("You are grown-up now.")
Else
MsgBox("You are still young.")
End If
Iteration operations are done using loops:
while loop:
Do While condition
... do something ...
End Do
and
for loop:
For i = 0 To a_number Then
... do something ...
Next