using expr inside sendmail
Hi, Assume A=5, B=3, and C=2. when I use this expression outside of the <dtml-sendmail> tag then I get a Total="10" Total = <dtml-var expr="A+B+C"> But when i use the above expression inside of <dtml-sendmail> </dtml-sendmail> I get the value of A,B,and C (5 3 2) I just want to send out the grand total of A,B, and C. What is wrong with my syntax? Can someone help please? Thanks, -- Mike Doanh Tran Shuffle Master Inc.
Mike Doanh Tran writes:
Assume A=5, B=3, and C=2. when I use this expression outside of the <dtml-sendmail> tag then I get a Total="10"
Total = <dtml-var expr="A+B+C">
But when i use the above expression inside of <dtml-sendmail> </dtml-sendmail> I get the value of A,B,and C (5 3 2) Almost surely, your variables have different types in the two contexts (integer in one context and string in another).
This would be your application, not the "sendmail" tag. Dieter
Almost surely, your variables have different types in the two contexts (integer in one context and string in another). This would be your application, not the "sendmail" tag.
You are absolutely right. My bad. On Sat 07 Sep 02 12:16, Dieter Maurer wrote:
Mike Doanh Tran writes:
Assume A=5, B=3, and C=2. when I use this expression outside of the <dtml-sendmail> tag then I get a Total="10"
Total = <dtml-var expr="A+B+C">
But when i use the above expression inside of <dtml-sendmail> </dtml-sendmail> I get the value of A,B,and C (5 3 2)
Almost surely, your variables have different types in the two contexts (integer in one context and string in another).
This would be your application, not the "sendmail" tag.
Dieter
-- Mike Doanh Tran Shuffle Master Inc. R&D Website: http://internal.shufflemasterrd.com/
participants (2)
-
Dieter Maurer -
Mike Doanh Tran