forLoopEx1.scad 115 B

12345
  1. for (z = [-1, 1]) // two iterations, z = -1, z = 1
  2. {
  3. translate([0, 0, z])
  4. cube(size = 1, center = false);
  5. }