cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to check whether next-level relationship exists for a Node?

Highlighted
Visitor

Is there a way to check whether next-level relationship exists for a Node?

I am trying to create a custom recipe for my report in PTC Integrity.

 

The below is a snippet of my recipe

<%beginrelationshipdetail Query [walkdocordered[<%builtin ID%>]]%>

 

<%beginrelationshipdetailL2 Implements%>

<script>

// Do this only if Level 2 relationship exists

</script>

<%endrelationshipdetailL2%>

 

<%endrelationshipdetail%>

 

In one scenario, there is no "Implements" relationship. So the code under Level2  relationship is not executed. Is there a way I can check whether the next-level relationship exists before-hand.

 

I am a newbie to Integrity recipes. My apologies, if this question is very basic.

Thanks in advance.

Tags (2)