60 lines
3.2 KiB
HTML
60 lines
3.2 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 lang="en-us" xml:lang="en-us">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
<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))' />
|
||
|
<meta name="DC.Type" content="reference" />
|
||
|
<meta name="DC.Title" content="Logical values" />
|
||
|
<meta name="abstract" content="A logical value is a single character (1 or 0) enclosed in apostrophes." />
|
||
|
<meta name="description" content="A logical value is a single character (1 or 0) enclosed in apostrophes." />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbam6constvalues.htm" />
|
||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
||
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
|
||
|
<meta name="DC.Format" content="XHTML" />
|
||
|
<meta name="DC.Identifier" content="rbam6logicalvalues" />
|
||
|
<meta name="DC.Language" 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. -->
|
||
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
||
|
<title>Logical values</title>
|
||
|
</head>
|
||
|
<body id="rbam6logicalvalues"><a name="rbam6logicalvalues"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Logical values</h1>
|
||
|
<div><p>A logical value is a single character (1 or 0) enclosed in apostrophes.</p>
|
||
|
<div class="section"><p>Logical values are often used as a switch to represent a condition
|
||
|
such as on or off, yes or no, and true or false. When used in expressions,
|
||
|
a logical value can be optionally preceded by *NOT or <img src="notsym.gif" alt="not symbol" />. The following are examples of logical values:</p>
|
||
|
|
||
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="border" border="1" rules="all"><caption>Table 1. Logical values</caption><thead align="left"><tr><th valign="top" id="d0e26">Constant</th>
|
||
|
<th valign="top" id="d0e28">Value</th>
|
||
|
<th valign="top" id="d0e30">Meaning</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody><tr><td valign="top" headers="d0e26 ">'0'</td>
|
||
|
<td valign="top" headers="d0e28 ">0</td>
|
||
|
<td valign="top" headers="d0e30 ">Off, no, or false</td>
|
||
|
</tr>
|
||
|
<tr><td valign="top" headers="d0e26 ">'1'</td>
|
||
|
<td valign="top" headers="d0e28 ">1</td>
|
||
|
<td valign="top" headers="d0e30 ">On, yes, or true</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbam6constvalues.htm" title="A constant value is the actual value. The types of constants are character string (includes names, date and hexadecimal values), decimal, and logical.">Constant value</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|