Types of operators

An operator is a symbol that stands for the action you want Authorware to perform on one or more values. For example, a plus sign (+) tells Authorware to add two values together. The concatenation operator (^) tells Authorware to fuse two strings of text into one: "car"^"pet" becomes carpet. Authorware has five types of operators: assignment, relational, logical, arithmetic, and concatenation. The operators you can use in Authorware are summarized in the following table.

All the operators are described in detail in System Functions. The Language category in the Functions dialog box also contains a complete list of the operators you can use.

Category Operator What it means
Assignment operator
:=

Assign the value on the right of the operator to the variable on the left

Relational operators
=

Equal to

 

<>

Not equal to

 

<

Less than

 

>

Greater than

 

<=

Less than or equal to

 

>=

Greater than or equal to

Logical operators
~

Not

 

&

And

 

|

Or

Arithmetic operators
+

Add

 

-

Subtract

 

*

Multiply

 

**

Exponent

 

/

Divide

Concatenation operator
^

Join (combines two strings into one)

See also


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/authorware/7/using_aw_en/09_var53.htm