[Newbies] hi
Alan Lovejoy
alan.lovejoy at gmail.com
Fri Oct 31 00:09:37 UTC 2014
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 <ron at 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-bounces at lists.squeakfoundation.org [mailto:beginners-
> > bounces at lists.squeakfoundation.org] On Behalf Of Hans Schueren
> > Sent: Thursday, October 30, 2014 1:52 PM
> > To: beginners at lists.squeakfoundation.org
> > Subject: [Newbies] hi
> >
> > hi fellows.
> >
> > Let x = 100
> > _______________________________________________
> > Beginners mailing list
> > Beginners at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
--
"Over it is not, until over it is." -- Yoda Berra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20141030/83a2202c/attachment.htm
More information about the Beginners
mailing list