What is the best way in Igor to toggle single bit

Hi

I am programming to automatically select a row in ListBox (mode=3) using SelWave which uses an integer to define/read status of each row, but still cannot figure out If I want to modify bit 0 regardless of other bits. What is the best way to do it?

Thank you very much.

Chanan