BIT manipulation...

Perfect, that was exactly what I was looking for. :slight_smile:

thx