Hans,

Here's a complete program which will print the numbers from 1 to 10 on the
console (each on its own line):

| index |
index := 0.
[index < 10]
    whileTrue:
        [index := index + 1.
        Transcript
             show: index printString;
             cr]

On Thu, Oct 30, 2014 at 4:58 PM, Ron Teitelbaum <r...@usmedrec.com> wrote:

> Hi Hans,
>
> |x|
> x := 100.
>
> |x| defines a temp x.  | x y | defines both x and y as temps.
>
> The assignment operator is :=
>
> If you use = or == you are asking for a comparison of x and 100.
>
> All the best,
>
> Ron Teitelbaum
>
> > -----Original Message-----
> > From: beginners-boun...@lists.squeakfoundation.org [mailto:beginners-
> > boun...@lists.squeakfoundation.org] On Behalf Of Hans Schueren
> > Sent: Thursday, October 30, 2014 1:52 PM
> > To: beginners@lists.squeakfoundation.org
> > Subject: [Newbies] hi
> >
> > hi fellows.
> >
> > Let x = 100
> > _______________________________________________
> > Beginners mailing list
> > Beginners@lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
>
> _______________________________________________
> Beginners mailing list
> Beginners@lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>



-- 
"Over it is not, until over it is." -- Yoda Berra
_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to