<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thank you, that explains what I didn't understand.<br>
<br>
Karl<br>
<br>
The Editor wrote:
<blockquote
 cite="mid:fec7cf150709201237r7f1209e2tfc3aaf3872876c55@mail.gmail.com"
 type="cite">
  <pre wrap="">On 9/20/07, Karl <a class="moz-txt-link-rfc2396E" href="mailto:kharris@bnin.net">&lt;kharris@bnin.net&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Thx for the message

So in the example you gave, is math the name of a variable?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Yes and no. It is the name of the field (in zap, special fields are
called commands). When saved though, it also becomes the name of a
page text variable.

  </pre>
  <blockquote type="cite">
    <pre wrap="">here is the syntax of my current zap form:

--------------------------------
(:input text E1 {$:E1} size=4:)
(:input text E2 {$:E2} size=4:)
(:input text E3 {$:E3} size=4:)
(:input text E4 {$:E4} size=4:)
(:input text E5 {$:E5} size=4:)
(:input text E6 {$:E6} size=4:)
(:input text E7 {$:E7} size=4:)

Total {(math
'{$:E1}+{$:E2}+{$:E3}+{$:E4}+{$:E5}+{$:E6}+{$:E7}')}
--------------------------------

what I want to do is assign the output of the math calculation to another
variable for use in another calculation.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Try something like this:

(:input text E1 {$:E1} size=4:)
(:input text E2 {$:E2} size=4:)
(:input text E3 {$:E3} size=4:)
(:input text E4 {$:E4} size=4:)
(:input text E5 {$:E5} size=4:)
(:input text E6 {$:E6} size=4:)
(:input text E7 {$:E7} size=4:)

(:zap math="{E1}+{E2}+{E3}+{E4}+{E5}+{E6}+{E7}":)
(:zap Esum="{math}":)
(:zap savedata="E1,E2,E3,E4,E5,E6,E7,Esum":)

Basically it calculates the sum then assigns that value to the field
Esum (you could just save it as math of course). So in the page
{$:Esum} should give you the total.

Dan



  </pre>
</blockquote>
<br>
</body>
</html>