this will compile ok....portb[x] and portb(x) compiles ok too, but it does nothing to activate the port.
So I guess the question is, how do you use a variable on a port?