The following are the miscellaneous operators and logical functions that are used for a variety of purposes in COD scripts. In most cases, the syntax can be copied/pasted directly into a file and function properly. They should be edited for your particular use. This allows you to short cut your time by not having to experiment to figure out code syntax.
Function | Example | Return Value |
---|---|---|
= | dim myval = 1 if myval=1 then... | |
< | if myval < 1 then... | |
> | if myval > 1 then... | |
<> | if myval <> 1 then... | |
+ | debug 1 + 1 debug("This is" + " " + "a test") | 2 "This is a test" |
- | debug 5 - 3 | 2 |
* | debug 2 * 2 | 4 |
/ | debug 4 / 2 | 2 |
and | debug 1 = 1 and 2 = 2 | n/a |
not | debug Not True | n/a |
or | debug Test = 1 or Test = 2 | n/a |
( ) | (2 + 2) * 5 | 20 |