You must show me an example what do you want checked in where, because i can't make anything from what you're trying to say.
There are constants in macros to indicate position :X :Y :Z
:Z==6 (would check if Z is equal to 6, if that's what you're asking)
There are constants in macros to indicate position :X :Y :Z
:Z==6 (would check if Z is equal to 6, if that's what you're asking)