Wiring Issue Headlamp not working Continued...

So, I tested to make sure I had power going into Z. It looks like Y is the hot feed to headlamp and X is like a return. I have power on Z but no power coming out of Y. Does the power from the battery go directly to the bulkhead connector and then come out of Y to feed the headlamp or does it feed the switch first and then power the lamp?



1732628742768.png