![LeCroy WaveRunner 104MXI Operator'S Manual Download Page 194](http://html1.mh-extra.com/html/lecroy/waverunner-104mxi/waverunner-104mxi_operators-manual_1866369194.webp)
W
AVE
R
UNNER
X
I
S
ERIES
194
WRXi-OM-E Rev B
These results are from file Brackets.Xls. You can make a copy of that file in order to experiment with different
combinations of brackets.
VBS Controls
Do Do Do
. . . . . . . . . . . .
Loop Loop Until . . . . Loop While
Do Until Do While Exit Do
. . . . . . . .
Loop Loop
For . . . Next Exit For
GoTo__
This is not allowed in instrument VBS.
If . . . . Then . . . . _' On one line
__
If . . . Then
ElseIf . . . Then
End If
If . . . Then . . . End If__
If . . . Then . . . Else . . . End If
Select Case
. . . .
End Select
While
. . . .
Wend
Choose the construction that best satisfies the requirements of speed and clarity.
The construction GoTo LabelledStatement is available in many languages, including VBA, but not in VBS.
GOTO
is not allowed in VBS.
IF . . . Then . . . Else . . . End If
A very simple example:
If A >= 0 Then B = Sqr (A) 'Take the square root of A if A is not negative.
If A + B < C + D Then E = F : G = H_ 'No End Is needed if all on one line.
If you need to perform a longer procedure, make this construction:
If A >= 0 Then
B = Sqr (A)
C = 32766 * Sin ( TwoPi * B / PeriodOfSinusoid)
End If ' End If is needed to terminate the construction.