Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set based operations in Biztalk rules

Status
Not open for further replies.

Pacman56

Programmer
Mar 29, 2006
1
GB
I am trying to create a rule that will loop through a stucture and check a rule against each loop. So basically "for each child node of this node check
a certain value". Also is it possible to maintain a variable whilst running the loop to keep a tally of another value? Like if you are totalling up a
value that is on each node? Not sure if this is clear enough please ask if you need more info.

Many Thanks in advance
 
You can set Public Variables up just like in VB Code. Since I'm not sure which version you are on, this may not make complete sense, but I'll try an 2002 example.

To initialize the variable
Public variablename
variablename = 0

Then to refer to it in the code
variablename = variablename + 1
This would increment the variable by 1

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top