The syntaxx is

High portb[i]

what you know is easy.