The script is similar to compare overlapping, except that when data of two different sets overlap, they are merged. You can use the same parameters as compare overlapping and use them to look for transcription on both strands, for example.
Optionally, you can also add to the output all the elements from the first set which do not overlap with the second set.