55 lines
1.3 KiB
HTML
55 lines
1.3 KiB
HTML
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
||
|
<meta http-equiv="Content-Type" content=
|
||
|
"text/html; charset=utf-8">
|
||
|
<title>let - Evaluate arithmetic expression</title>
|
||
|
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
||
|
</HEAD>
|
||
|
<body bgcolor="#FFFFFF">
|
||
|
<!-- Java sync-link -->
|
||
|
<SCRIPT LANGUAGE="Javascript" SRC="../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
||
|
|
||
|
|
||
|
|
||
|
<h2>let - Evaluate arithmetic expression</h2>
|
||
|
|
||
|
<strong>Synopsis</strong>
|
||
|
|
||
|
<p><strong>let</strong> <em>arg ...</em></p>
|
||
|
|
||
|
<p><strong>Description</strong></p>
|
||
|
|
||
|
<p>You can use <strong>let</strong> to evaluate each <em>arg</em>
|
||
|
as an <a href="arithexp.htm">arithmetic expression</a>. You
|
||
|
may need to quote each <em>arg</em> since many arithmetic operators
|
||
|
have a special meaning to <strong>qsh</strong>.</p>
|
||
|
|
||
|
<p><strong>Operands</strong></p>
|
||
|
|
||
|
<p>Each <em>arg</em> is evaluated as an <a href=
|
||
|
"arithexp.htm">arithmetic expression</a>.</p>
|
||
|
|
||
|
<p><strong>Exit Status</strong></p>
|
||
|
|
||
|
<ul>
|
||
|
<li>0 when the value of the last expression is non-zero</li>
|
||
|
|
||
|
<li>1 when the value of the last expression is zero</li>
|
||
|
</ul>
|
||
|
|
||
|
<strong>Examples</strong>
|
||
|
|
||
|
<ol>
|
||
|
<li>Add one to the variable x.
|
||
|
|
||
|
<pre>
|
||
|
let x=x+1
|
||
|
</pre>
|
||
|
</li>
|
||
|
</ol>
|
||
|
</body>
|
||
|
</html>
|
||
|
|