2 Copyright (c) 2000-2014 Ericsson Telecom AB
4 All rights reserved. This program and the accompanying materials
5 are made available under the terms of the Eclipse Public License v1.0
6 which accompanies this distribution, and is available at
7 http://www.eclipse.org/legal/epl-v10.html
11 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
12 <meta http-equiv=
"Content-Language" content=
"en-us">
13 <title>operators
</title>
15 <body bgcolor=
"#DAD3C5" vlink=
"#0094D2" link=
"#003258">
16 <table align=
"left" border=
"0" cellspacing=
"0" cellpadding=
"0" valign=top
>
18 <td width=
105 height=
40><a href=
"https://projects.eclipse.org/projects/tools.titan"><img src=
"../images/titan_transparent.gif" border=
0 width=
105 height=
40 align=
"left" alt=
"Titan"></a></td>
21 <table border=
"0" align=
"right" cellpadding=
"0" cellspacing=
"0">
23 <td><a href=
"../titan_main.html" alt=
"contents"><img border=
"0" src=
"../images/ao.jpg" width=
"53" height=
"40"></a></td>
24 <td><a href=
"../titan_index.html" alt=
"index"><img border=
"0" src=
"../images/up.jpg" width=
"53" height=
"40"></a></td>
25 <td><a href=
"on.html" alt=
"previous"><img border=
"0" src=
"../images/left.jpg" width=
"53" height=
"40"></a></td>
26 <td><a href=
"optional.html" alt=
"next"><img border=
"0" src=
"../images/right.jpg" width=
"53" height=
"40"></a></td>
32 <h1>TTCN-
3 operators
</h1>
33 <hr align=
"left" width=
"75%">
34 <p>TTCN-
3 supports a number of predefined operators that may be used in the terms of TTCN-
3 expressions. The predefined operators fall into seven categories:
36 <li>arithmetic operators;
38 <li>relational operators;
39 <li>logical operators;
40 <li>bitwise operators;
44 <p>These operators are listed in the following table:
49 <th>Symbol or Keyword
</th>
52 <td rowspan=
6>Arithmetic operators
</td>
61 <td>multiplication
</td>
70 <td><a href=
"mod.html">mod
</a></td>
74 <td><a href=
"rem.html">rem
</a></td>
77 <td>String operators
</td>
78 <td>concatenation
</td>
82 <td rowspan=
6>Relational operators
</td>
99 <td>greater than or equal
</td>
103 <td>less than or equal
</td>
107 <td rowspan=
4>Logical operators
</td>
109 <td><a href=
"not.html">not
</a></td>
113 <td><a href=
"and.html">and
</a></td>
117 <td><a href=
"or.html">or
</a></td>
121 <td><a href=
"xor.html">xor
</a></td>
124 <td rowspan=
4>Bitwise operators
</td>
126 <td><a href=
"not4b.html">not4b
</a></td>
130 <td><a href=
"and4b.html">and4b
</a></td>
134 <td><a href=
"or4b.html">or4b
</a></td>
138 <td><a href=
"xor4b.html">xor4b
</a></td>
141 <td rowspan=
2>Shift operators
</td>
150 <td rowspan=
2>Rotate operators
</td>
155 <td>rotate right
</td>
159 <p>The precedence of these operators is shown in the table below. Within any row in this table, the listed operators have equal precedence. If more than one operator of equal precedence appears in
160 an expression, the operations are evaluated from left to right. Parentheses may be used to group operands in expressions, in which case a parenthesized expression has the highest precedence for
165 <th>Operator type
</th>
180 <td>*, /,
<a href=
"mod.html">mod
</a>,
<a href=
"and.html">rem
</a></td>
188 <td><a href=
"not4b.html">not4b
</a></td>
192 <td><a href=
"and4b.html">and4b
</a></td>
196 <td><a href=
"xor4b.html">xor4b
</a></td>
200 <td><a href=
"or4b.html">or4b
</a></td>
204 <td><<,
>>,
<@, @
></td>
208 <td><,
>,
<=,
>=
</td>
216 <td><a href=
"not.html">not
</a></td>
220 <td><a href=
"and.html">and
</a></td>
224 <td><a href=
"xor.html">xor
</a></td>
229 <td><a href=
"or.html">or
</a></td>
232 <hr align=
"left" width=
"50%">