122 lines
5.6 KiB
HTML
122 lines
5.6 KiB
HTML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="dc.language" scheme="rfc1766" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<meta name="dc.date" scheme="iso8601" content="2005-09-13" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow"/>
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<title>ADDWHEN and DELETEWHEN expression operators</title>
|
|
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
|
|
<link rel="stylesheet" type="text/css" href="ic.css" />
|
|
</head>
|
|
<body>
|
|
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
|
|
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
|
|
|
|
|
|
<a name="rzahqoperator"></a>
|
|
<h4 id="rzahqoperator">ADDWHEN and DELETEWHEN expression operators</h4>
|
|
<p>You can use these operators for expressions:</p>
|
|
<a name="wq499"></a>
|
|
<table id="wq499" width="100%" summary="" border="1" frame="border" rules="all" class="singleborder">
|
|
<thead valign="bottom">
|
|
<tr class="tablemainheaderbar">
|
|
<th id="wq500" width="11%" align="left" valign="bottom">Operator</th>
|
|
<th id="wq501" width="88%" align="left" valign="bottom">Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody valign="top">
|
|
<tr>
|
|
<td align="center" valign="top" headers="wq500">==</td>
|
|
<td align="left" valign="top" headers="wq501">Returns TRUE if operands are equivalent,
|
|
FALSE if they are not.</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" valign="top" headers="wq500">!=</td>
|
|
<td align="left" valign="top" headers="wq501">Returns FALSE if operands are equivalent,
|
|
TRUE if they are not.</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" valign="top" headers="wq500">></td>
|
|
<td align="left" valign="top" headers="wq501">Returns TRUE if the operand on the left is
|
|
greater than the operand on the right, FALSE if it is not. If the operands
|
|
are strings, the ASCII values are compared.</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" valign="top" headers="wq500"><span class="bold"> <</span></td>
|
|
<td align="left" valign="top" headers="wq501">Returns TRUE if the operand on the left
|
|
is less than the operand on the right, FALSE if it is not. If the operands
|
|
are strings, the ASCII values are compared.</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" valign="top" headers="wq500">>=</td>
|
|
<td align="left" valign="top" headers="wq501">Returns TRUE if the operand on the left
|
|
is greater than or equal to the operand on the right, FALSE if it is not.
|
|
If the operands are strings, the ASCII values are compared.</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" valign="top" headers="wq500"><span class="bold"> <=</span></td>
|
|
<td align="left" valign="top" headers="wq501">Returns TRUE if the operand on the left
|
|
is less than or equal to the operand on the right, FALSE if it is not. If
|
|
the operands are strings, the ASCII values are compared.</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" valign="top" headers="wq500"><span class="bold"> &&</span></td>
|
|
<td align="left" valign="top" headers="wq501">Logical AND. Returns TRUE if both operands
|
|
have a value other than 0. Operands must be integers.</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" valign="top" headers="wq500"><span class="bold">||</span></td>
|
|
<td align="left" valign="top" headers="wq501">Logical OR. Returns TRUE if either operand
|
|
has a value other than 0. Operands must be integers.</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" valign="top" headers="wq500"><span class="bold">+</span></td>
|
|
<td align="left" valign="top" headers="wq501">If the operands are both integers, the result
|
|
is the sum of the integers. If the operands are both strings, the result
|
|
is the concatenation of the two strings.</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" valign="top" headers="wq500"><span class="bold">-</span></td>
|
|
<td align="left" valign="top" headers="wq501">Subtracts integers.</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" valign="top" headers="wq500"><span class="bold">*</span></td>
|
|
<td align="left" valign="top" headers="wq501">Multiplies integers.</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" valign="top" headers="wq500"><span class="bold">/</span></td>
|
|
<td align="left" valign="top" headers="wq501">Divides integers.</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" valign="top" headers="wq500"><span class="bold">()</span></td>
|
|
<td align="left" valign="top" headers="wq501"> Parentheses force an evaluation order.</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" valign="top" headers="wq500">!</td>
|
|
<td align="left" valign="top" headers="wq501">Logical NOT. Returns TRUE if the value of
|
|
a single operand is 0. Returns FALSE if it is not 0.</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" valign="top" headers="wq500"> ALWAYS</td>
|
|
<td align="left" valign="top" headers="wq501">Always returns TRUE.</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" valign="top" headers="wq500">NEVER</td>
|
|
<td align="left" valign="top" headers="wq501">Always returns FALSE.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
|
|
</body>
|
|
</html>
|