Returning value from subtemplate
Hi,
I have a requirement where i need to pass a parameter to the sub-template and check if that exists in sub template from a list of values, if it exists i need to perform a specific task in the main template else i need not have to do anything.
Say for example my xml contains a number: 2, I need to pass this value to sub template and check with the values which are already mentioned in the sub-template, if 2 exists in sub-template, i need to perform a specific task in my main template.
Main Template:
2
Sub template
2,3,4,5,6
As 2 exists in sub template so i need to perform a specific task in the main template.