To determine the value of each bit in a byte.

Mostly is not mine :slight_smile:, it’s taken from http://forum.mikrotik.com/t/script-for-sending-incoming-sms-to-mail-with-full-parsing/140125/1 but I understand enough to adapt it for my purpose.