Sorry if title is vague.
lets say I have a binary value 0b111000111
What I am looking for is a way to extract each bit individually lets say.
a boolean variable x = 1 then 1 then 1 then 0 then 0 ..
hence x takes values 1,1,1,0,0,0,1,1,1 one at a time.
it doesn't have to be a binary value it could also be hex.
How would you achieve this?