do it this way
if y=3 then
variable.3=0

...