eg.

condition output (8 LED)

if a less than b 11110000

if a is equal to b 11111111

if a is greater than b 00001111

Our problem is we don't know how to convert it into (3) 7-segment display. Can someone please teach us how to convert 8-bit binary into 7 segments display? Your help would be greatly appreciated.