WR6K-OM-E Rev A
ISSUED: October 2003
273
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.
The If statement is very often used with the following Boolean expressions:
A > B
A is greater than B
A >= B
A is greater than B or equal to B
A = B
A is equal to B
A < B
A is less than B
A <= B
A is less than B or equal to B
A <> B
A is not equal to B
These statements are not like the usual program statements, such as A = B. These statements
are Boolean (logic) statements, which can take the values True or False. You may even see
things like "If A Then B", which means that if A is True, B gets done.
In the first example, if A is negative, we might want to write something like this:
If A >= 0 Then
B = Sqr (A)
Else
B = 0
End If
and in fact you can make some very complex constructions using If, as in the examples below:
If A < 0 Then
If A < - 1 Then
Z = 17
Else_
Z = 31
End If
Summary of Contents for 6000 SERIES
Page 65: ...WR6K OM E Rev A ISSUED October 2003 63 Proper Orientation of Drive ...
Page 131: ...WR6K OM E Rev A ISSUED October 2003 129 Example ...
Page 141: ...WR6K OM E Rev A ISSUED October 2003 139 ...
Page 236: ...Operator s Manual 234 ISSUED October 2003 WR6K OM E Rev A Example 6 ...
Page 261: ...WR6K OM E Rev A ISSUED October 2003 259 ...
Page 286: ...Operator s Manual 284 ISSUED October 2003 WR6K OM E Rev A ...
Page 304: ...Operator s Manual 302 ISSUED October 2003 WR6K OM E Rev A ...
Page 307: ...WR6K OM E Rev A ISSUED October 2003 305 Convolve two signals ...
Page 348: ...Operator s Manual 346 ISSUED October 2003 WR6K OM E Rev A ...
Page 402: ...Operator s Manual 400 ISSUED October 2003 WR6K OM E Rev A ...