First, we set the loop to the interval of the data.
The next couple of lines indicate the starting of one section and the title of the example, taken from the first field in the interval data with an abbreviation on the label. They are followed by a comment explaining the type of data we are using.
$ LOAD TYPE
We begin by setting the condition as before. If one condition is assigned twice or more to the same element without including the *CanRepeat parameter in the *Set Cond, the condition will appear once; if the *CanRepeat parameter is present then the number of conditions that will appear is the number of times it was assigned to the condition.
Then, a condition checks if any element exists in the condition.
Next is a title for the next section, followed by a comment for the user.
We assign the number of nodes to a variable.
The final section deals with outputting a list of the nodes and their conditions.