I would love to be able to go Request$foo++ But alas... <@ASSIGN name="foo" value="<@CALC EXPR='@@foo + 1'>">
Is what you have to do Note from docs: Do not confuse calculation variables with configuration variables or other Tango variables. They are only applicable to <@CALC> and do not work with <@ASSIGN> or <@VAR>. Ben Johansen - http://www.pcforge.com Authorized Witango Reseller http://www.pcforge.com/WitangoGoodies.htm Authorized MDaemon Mail Server Reseller http://www.pcforge.com/AltN.htm -----Original Message----- From: Jim Kass [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 10:54 AM To: [EMAIL PROTECTED] Subject: Witango-Talk: Quickie Question: Incrementing Variable Shorthand? Anyone have the shorthand for incrementing a variable value... I remember there being something like <@ASSIGN name="foo" value:="bar"> to append to an existing string, so I figured <@ASSIGN name="foo" value+=1> would do the same thing as "foo++" in any other language, but it doesn't work. Is there another way to do this, am I just confused or do I have to use: <@ASSIGN name="foo" value="<@CALC EXPR='@@foo + 1'>"> Jim Kass Web Developer -- Forestweb: The Source for Industry Intelligence Best Content -- Most Relevant -- Best Delivery http://www.forestweb.com (310) 553 - 0008 ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
