Yes, actually I think that is exactly what I wanted! Jim Kass Web Developer
-- Forestweb: The Source for Industry Intelligence Best Content -- Most Relevant -- Best Delivery http://www.forestweb.com (310) 553 - 0008 -----Original Message----- From: Scott Cadillac [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 11:19 AM To: [EMAIL PROTECTED] Subject: RE: Witango-Talk: Quickie Question: Incrementing Variable Shorthand? Hi Jim, Witango is more of a "tag" based language, like Lasso, ColdFusion and Python. But of course we have visual "Action" objects which those other language do not. So technically Witango is not a scripting language, which means you are limited in the range of special operators you have available. Your line below is typically the way it is done. <@ASSIGN name="foo" value="<@CALC EXPR='@@foo + 1'>"> But for where we may lack some special operators, we almost always have a Metatag that can perform a similar operation. So, another lesser known Metatag can also be used like the following, to get what you need: <@NEXTVAL local$foo> Hope this is what you are looking for. Cheers.... Scott Cadillac, Witango.org - http://witango.org 403-281-6090 - [EMAIL PROTECTED] -- Information for the Witango Developer Community --------------------- XML-Extranet - http://xml-extra.net 403-281-6090 - [EMAIL PROTECTED] -- Well-formed Development (for hire) --------------------- > -----Original Message----- > From: Jim Kass [mailto:[EMAIL PROTECTED] > Sent: Monday, July 28, 2003 11: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 ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
