An operator is a symbol, set of symbols, or keyword that specifies an operation to be performed on data. Data is supplied in the form of arguments, or operands.

For example, in the expression "total = 0", the equal sign is the operator and "total" and "0" are the operands. In this expression, the numeric operator "=" takes two operands, which makes it a binary operator. Operators that require just one operand (such as the numeric increment operator "++") are known as unary operators.

Operators are categorized by type. dBL’s operators are classified as follows:

Operator symbols

Operator category

= := += -= *= /= %=

Assignment

= == <> # > < >= <= $

Comparison

+ -

String concatenation

+ - * / % ^ ** ++ --

Numeric

AND OR NOT

Logical

. [] NEW ::

Object

( )

Call, Indirection

->

Alias

&

Macro

Most symbols you see in dBL code are operators, but not all. Quotation marks, for example, are used to denote literal strings and thus are part of the representation of a data type. Since they don’t act upon data, they’re a "non-operational" symbol.

You can use the following non-operational symbols in dBL code:

Symbols

Name/meaning

;

Statement separator, line continuation

// &&

End-of-line comment

*

Full-line comment

/* */

Block comment

{} {;} {||}

Literal date/literal array/codeblock markers

"" '' []

Literal strings

::

Name/database delimiters

#

Preprocessor directive

 

Finally, the following symbols are used as dBL commands when they are used to begin a statement:

Symbols

Name/meaning

? ??

Displays streaming output

!

Runs program or operating system command