lego Circular Block Maker

I wrote this to help me understand OpenScad better
Has If statement , else and Modules too.
I could have made it simple
but as I said the Idea was to understand OpenScad Better
Instructions :
Block= B; // B is a brick, F = Flat <<<<< CHANGE THIS ONLY
// S = Stud only Don't use Bx3 use B =
Stud = 2; // Missing or Flat = 0 <<<<< CHANGE THIS ONLY
// Stud = 1
// Hollow =2
// Female Base on top = 3
// Special top to be added later