jvanzyl     00/10/20 23:12:24

  Modified:    docs     vtl-reference-guide.html
  Log:
  - update for arithmetic.
  
  Revision  Changes    Path
  1.5       +17 -4     jakarta-velocity/docs/vtl-reference-guide.html
  
  Index: vtl-reference-guide.html
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/docs/vtl-reference-guide.html,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- vtl-reference-guide.html  2000/10/21 05:50:49     1.4
  +++ vtl-reference-guide.html  2000/10/21 06:12:24     1.5
  @@ -219,7 +219,7 @@
   
   <P align="justify">
       <DIV align="left"><TABLE border="0" cellpadding="0" cellspacing="0"><TR><TD 
bgcolor="#023264" colspan="3" height="1"><IMG border="0" height="1" hspace="0" 
src="resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD bgcolor="#023264" 
width="1"><IMG border="0" height="1" hspace="0" src="resources/void.gif" vspace="0" 
width="1"></TD><TD bgcolor="#ffffff"><TABLE><TR><TD align="left"><PRE>
  -    #set $primate = &quot;five assed monkey&quot;
  +    #set $primate = &quot;monkey&quot;
       #set $customer.Behavior = $primate 
       </PRE></TD></TR></TABLE></TD><TD bgcolor="#023264" width="1"><IMG border="0" 
height="1" hspace="0" src="resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD 
bgcolor="#023264" colspan="3" height="1"><IMG border="0" height="1" hspace="0" 
src="resources/void.gif" vspace="0" width="1"></TD></TR></TABLE></DIV>
   </P>
  @@ -249,11 +249,24 @@
   <P align="justify">
       <DIV align="left"><TABLE border="0" cellpadding="0" cellspacing="0"><TR><TD 
bgcolor="#023264" colspan="3" height="1"><IMG border="0" height="1" hspace="0" 
src="resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD bgcolor="#023264" 
width="1"><IMG border="0" height="1" hspace="0" src="resources/void.gif" vspace="0" 
width="1"></TD><TD bgcolor="#ffffff"><TABLE><TR><TD align="left"><PRE>
       #set $monkey = $bill
  -    #set $monkey.Sucker = &quot;monica&quot;
  +    #set $monkey.Friend = &quot;monica&quot;
       #set $monkey.Blame = $whitehouse.Leak
       #set $monkey.Plan = $spindoctor.weave($web)
  -    #set $monkey.Accomplice = 666
  -    #set $monkey.Say = [&quot;I&quot;, $will, &quot;rise&quot;, $again]
  +    #set $monkey.Number = 123
  +    #set $monkey.Say = [&quot;Not&quot;, $my, &quot;fault&quot;]
  +    </PRE></TD></TR></TABLE></TD><TD bgcolor="#023264" width="1"><IMG border="0" 
height="1" hspace="0" src="resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD 
bgcolor="#023264" colspan="3" height="1"><IMG border="0" height="1" hspace="0" 
src="resources/void.gif" vspace="0" width="1"></TD></TR></TABLE></DIV>
  +</P>
  +
  +<P align="justify">
  +    The RHS can also be a simple arithmetic expression:
  +</P>    
  +
  +<P align="justify">
  +    <DIV align="left"><TABLE border="0" cellpadding="0" cellspacing="0"><TR><TD 
bgcolor="#023264" colspan="3" height="1"><IMG border="0" height="1" hspace="0" 
src="resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD bgcolor="#023264" 
width="1"><IMG border="0" height="1" hspace="0" src="resources/void.gif" vspace="0" 
width="1"></TD><TD bgcolor="#ffffff"><TABLE><TR><TD align="left"><PRE>
  +    #set $value = $foo + 1
  +    #set $value = $bar - 1
  +    #set $value = $foo * $bar
  +    #set $value = $foo / $bar
       </PRE></TD></TR></TABLE></TD><TD bgcolor="#023264" width="1"><IMG border="0" 
height="1" hspace="0" src="resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD 
bgcolor="#023264" colspan="3" height="1"><IMG border="0" height="1" hspace="0" 
src="resources/void.gif" vspace="0" width="1"></TD></TR></TABLE></DIV>
   </P>
   
  
  
  

Reply via email to