Data Sheet

MicroBasic Scripting
206 Advanced Digital Motor Controller User Manual V1.8, August 28, 2017
ToBool Statement
Converts the given expression into boolean value. It will be return False if expression
evaluates to zero, Tru e otherwise.
ToBool(<expression>)
Consider the following example:
Print(ToBool(a), “\n”)
The previous example will output False if value of a equals to zero, True otherwise.
Print Statement
Output the list of expression passed.
Print({str | expression | ToBool(<expression>)}[,{str | expression
| ToBool(<expression>)}]...)
The print statement consists of the Print keyword followed by a list of expressions sepa-
rated by comma. You can use ToBool keyword to force print of expressions as Boolean.
Strings are C++ style strings with escape characters as described in the Strings section
(see Stringspage 196).
a = 3
b = 5
Print(“a = “, a, “, b = “, b, “\n”)
Print(“Is a less than b = “, ToBool(a < b), “\n”)
+ Operator
The + operator can function as either a unary or a binary operator.
+ expression
expression + expression
- Operator
The - operator can function as either a unary or a binary operator.
- expression
expression - expression
* Operator
The multiplication operator (*) computes the product of its operands.
expression * expression
/ Operator
The division operator (/) divides its first operand by its second.
expression * expression