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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

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

nchullip
3-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.

0 REPLIES 0
Top Tags