It actually works both ways.

X var byte
y var byte
z var bit

X = %01010101

Y = 3
Z = X.0[Y]
Z = 0

Y = 4
Z = X.0[Y]
Z = 1