Skip to main content
1-Visitor
July 1, 2019
Question

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

  • July 1, 2019
  • 0 replies
  • 978 views

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.