It's the shortened form of Если бы.

If you know how to use "бы" you will have no problem with "б".