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@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@lists.squeakfoundation.org [mailto:beginners- bounces@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