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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Add one more Object to a sequence as in Input !

Status
Not open for further replies.

StifflersMum

Programmer
Feb 12, 2004
2
CH
I have a Input Tree with an Sequence Part. So there is for example this:

Sequence (1:S):
----------------
BB
Value = xx
/BB

CC
Value = yy
/CC
------------------


BB and CC are Groups with the beginning and ending tag.
In this example the sequence will find 2 object and will run therefore only 2 times in a functional map.
Now:
If a specific object (for example the AA group) is not present i wana add this group to the sequence. This means that Input has 2 object and output has 3 object in this specific sequence !

We cannot change the typetree, so we need to do it with functional maps i think !
Can you help us to acheive this ?
Thank you a lot !!

greets
Stiffler
 
I think what you are trying to do would be accomplished like this:

Use an IF statement to test if AA group is present, and if not call a functional map to create this. However, functional map calls should not be on a group element, so you would need to pass the result to either another card or a RUN map with the correct tree to create the data.

Basically, if the tree does not define the data, you can't create it. The functional map call would create a single text item with the correct structure to be a group if mapped through a good tree.



BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top