That should work, as it seems like you can only have one group going at a time. I tried to open more than one group, but once I ended the group, the bit code 8 was gone.
Edit: No need to do an ' and ' though, as just an ' if ' would work, as the second part will always return nil. Not that it matters though.