> WoodHacker wrote:
> > Can someone explain to me the proper way to code an 'if' statement
> > when there are multiple lines involved.
> > For instance in Ruby:
> > if x == true
> > do_step_one()
> > do_step_two()
> > else
> > do_step_three()
> > do_step_four()
> > end
> (cond
> [x (do-step-one)
> (do-step-two)]
> [else
> (do-step-three)
> (do-step-four)])
> > Is begin the way to go or does begin have a different (sequencing)
> > meaning?
> With if+begin it looks like:
> (if x
> (begin
> (step1)
> (step2))
> (begin
> (step3)
> (step4)))
> but I find that harder to read.
> --
> Jens Axel Sgaard
Brackets apparently don't work in Chicken Scheme, which is what I'm