aをx(0)、bをx(1)に変えて
if c=True Then index = 0 else index = 1
x(index) = x(index) + 1