How do I reference a particular Game Piece Property?

This is my first time working with Vassal, so sorry if this is a simple question.

For Instance:
I have a Prototype Definition named ‘Tile’ that has a dynamic property ‘orientation’

I have many Game Pieces that inherit this prototype: Piece A, Piece B, Piece C, Piece D…

I want to add a Global Key Command that only runs if the orientation of Piece A matches the orientation of Piece B.