How to compare values from elements (newbie question)

How do I compare the pipe start offset and end offsets in the example below? Thanks

Compare Element Values