Artifact 0d64da7afddcd3d1160543baffcd9de7d2614c6cd147726443296430d30e5f89:
- Executable file
r37/lisp/csl/html/r37_0038.html
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1502) [annotate] [blame] [check-ins using] [more...]
<A NAME=group> <TITLE>group</TITLE></A> <b><a href=r37_idx.html>INDEX</a></b><p><p> <B><<</B> _ _ _ <B>GROUP</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>command</B><P> <P> The <em><<</em>...<em>>></em> command is a group statement, used to group statements together where REDUCE expects a single statement. <P> <P> <P> <H3> syntax: </H3> <em><<</em><statement>{; <statement> <em>or</em> <statement>}* <em>>></em> <P> <P> <P> <statement> may be any valid REDUCE statement or expression. <P> <P> <P> <H3> examples: </H3> <P><PRE><TT> a := 2; A := 2 if a < 5 then <<b := a + 10; write b>>; 12 <<d := c/15; f := d + 3; f**2>>; 2 C + 90*C + 202 ---------------- 225 </TT></PRE><P>The value returned from a group statement is the value of the last individual statement executed inside it. Note that when a semicolon is placed between the last statement and the closing brackets, 0 or nil is returned. Group statements are often used in the consequence portions of <A HREF=r37_0052.html>if</A>...<em>then</em>, <A HREF=r37_0056.html>repeat</A>...<em>until</em>, and <A HREF=r37_0228.html>while</A>...<em>do</em> clauses. They may also be used in interactive operation to execute several statements at one time. Statements inside the group statement are separated by semicolons or dollar signs. <P> <P> <P> <P>