C5 Operators

String : 

+ : Concatenate
- : Concatenate without intervening spaces

Mathematical : 

+ : Addition or Unary Positive
- : Subtraction or Unary Negative
* : Multiplication
/ : Division
% : Modulus--binary 
** or ^ : Exponentiation

Relational : 

<      : Less than
>      : Greater than
=     : Equal
==  : Exactly equal for character; equal for other data types
<>, #, or !=  : Not equal
<=   :  Less than or equal
>=   : Greater than or equal
$     : Is contained in the set or is a subset of  (Substring comparison)

Logical : 

.AND. : Logical and
.OR.  : Logical or
.NOT. or ! : Logical negate

Assignment :

=  : Assign
:= : Inline assign
+= : Inline add (or concatenate) and assign
-= : Inline subtract (or concatenate) and assign
*= : Inline multiply and assign
/= : Inline divide and assign
^= : Inline exponentiate and assign
%= : Inline modulus and assign

Increment and Decrement :

++ : Prefix or postfix increment
-- : Prefix or postfix decrement

Special : 

:: : Send a message to an object
() : Function or grouping
[] : Array element
{} : Constant array definition
-> : Alias identifier
&  : Compile and execute (Macro evaluation--unary)
@  : Pass by reference

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s