[futurebasic] Re : While anomaly

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 1999 : Group Archive : Group : All Groups

From: Lucy24@...
Date: Wed, 28 Apr 1999 12:37:03 EDT
> WHILE answer = 0 OR trys <= 3
>   <snip, snip>

Later, of course, you'll give your students the follow-up assignment of 
working out alternative ways to arrive at the same end. For example, 
eliminating a gratuitous variable--

 WHILE trys <= 3
   INPUT "How many cents in a dollar? ";num
   LONG IF num = 100
     trys = 4
     <snip, snip>

... and this is the perfect time to introduce the "ea" command in MacsBug-- 
the student's foolproof escape valve when the underlying problem is a
  WHILE localTemp > 32 
which, due to some small error, has turned into a 
  WHILE hellTemp > 32