I don't understand the confusion.

X var byte
y var byte
z var bit

X = %01010101

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


X is a variable, Y is a variable. Bit 3 of X is a '0'

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

Bit 4 of X is 1