Debian Codegraph @

docsrc/xlisp/xlisp-doc/reference/char-greaterp-s.htm

raw
1 <html><head><title>XLISP char&gt;</title>
2
3 <link rel="stylesheet" type="text/css" href="reference.css">
4
5 </head>
6
7 <body>
8
9 <a href="../start.htm">Nyquist / XLISP 2.0</a>&nbsp; -&nbsp;
10 <a href="../manual/contents.htm">Contents</a> |
11 <a href="../tutorials/tutorials.htm">Tutorials</a> |
12 <a href="../examples/examples.htm">Examples</a> |
13 <a href="reference-index.htm">Reference</a>
14
15 <hr>
16
17 <h1>char&gt;</h1>
18
19 <hr>
20
21 <p><table cellpadding="0" cellspacing="0" style="margin-left:10px"><tbody>
22 <tr valign="top">
23 <td><nobr>Type:</nobr></td>
24 <td><nobr>&nbsp;&nbsp;-&nbsp;&nbsp;</nobr></td>
25 <td width="100%"><nobr>function (subr)</nobr></td>
26 </tr>
27 <tr valign="top">
28 <td><nobr>Source:</nobr></td>
29 <td><nobr>&nbsp;&nbsp;-&nbsp;&nbsp;</nobr></td>
30 <td width="100%"><nobr>xlstr.c</nobr></td>
31 </tr>
32 </tbody></table></p>
33
34 <h2>Syntax</h2>
35
36 <p><div class="box">
37
38 <dl>
39 <dt>(<b>char&gt;</b> <i>char1 charN</i> ... )</dt>
40 <dd><i>char1</i> - a character expression<br>
41 <i>charN</i> - character expression[s] to compare<br>
42 returns - <a href="t.htm">&nbsp;T&nbsp;</a>
43 if the characters are of monotonically decreasing
44 <a href="../misc/ascii-table.htm">ASCII</a> value,
45 <a href="nil.htm">NIL</a> otherwise<br>
46 <b>Note:</b> case is significant with this function</dd>
47 </dl>
48
49 </div></p>
50
51 <h2>Description</h2>
52
53 <p>The 'char&gt;' function tests if all the character arguments are
54 monotonically decreasing. <nobr><a href="t.htm">&nbsp;T&nbsp;</a> is</nobr>
55 returned if the arguments are of monotonically decreasing
56 <a href="../misc/ascii-table.htm">ASCII</a> value, <a href="nil.htm">NIL</a>
57 otherwise. <nobr>In the</nobr> case of two arguments, this has the effect of
58 testing if 'char1' is greater than 'char2'. This test is case sensitive, the
59 character '#\a' is different and of greater <a
60 href="../misc/ascii-table.htm">ASCII</a> value than the
61 <nobr>character '#\A'</nobr>.</p>
62
63 <h2>Examples</h2>
64
65 <pre class="example">
66 (char&gt; #\a #\b) =&gt; NIL
67 (char&gt; #\b #\a) =&gt; T
68 (char&gt; #\c #\b #\a) =&gt; T
69 (char&gt; #\a #\a) =&gt; NIL
70 (char&gt; #\c #\a #\b) =&gt; NIL
71 (char&gt; #\A #\a) =&gt; NIL
72 (char&gt; #\a #\A) =&gt; T
73 </pre>
74
75 <p>See also:</p>
76
77 <ul>
78 <li><nobr>Contents &rarr; <a href="../manual/contents.htm#character-functions">Character Functions</a></nobr></li>
79 </ul>
80
81 <p><nobr>&nbsp;&nbsp;<a href="#top">Back to Top</nobr></a></p>
82
83 <hr>
84
85 <a href="../start.htm">Nyquist / XLISP 2.0</a>&nbsp; -&nbsp;
86 <a href="../manual/contents.htm">Contents</a> |
87 <a href="../tutorials/tutorials.htm">Tutorials</a> |
88 <a href="../examples/examples.htm">Examples</a> |
89 <a href="reference-index.htm">Reference</a>
90
91 </body></html>