<div dir="ltr">Thanks so much.<div><br></div><div>Ron</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">Mr. Guillemette<div><br></div><div>Computer Technology and Game Design<br><div>The Regional Career &amp; Tech Center @ Coventry High</div>
<div>40 Reservoir Road, Coventry, RI 02816</div><div>401-822-9499 ext 287</div></div></div></div>
<br><br><div class="gmail_quote">On Mon, Jan 27, 2014 at 12:14 PM, Robert Durtschi <span dir="ltr">&lt;<a href="mailto:robert.durtschi@gcsu.edu" target="_blank">robert.durtschi@gcsu.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I ran into almost the exact same problem.<br>
The compare  function Will accept and adjust for an integer variable but not an integer function.  What we did in my classes is to create a temporary integer variable (FUBAR - Fouled Up Beyond All Recognition, has an old an honored tradition), Drag it down into the while true..., then drag the integer function on top of the temporary integer variable.<br>

<br>
Best<br>
Bob Durtschi<br>
________________________________________<br>
<br>
Message: 2<br>
Date: Mon, 27 Jan 2014 09:00:08 -0500<br>
From: Ron Guillemette &lt;<a href="mailto:rgilmet123@gmail.com">rgilmet123@gmail.com</a>&gt;<br>
Subject: alice-teacher Conditional Loops<br>
To: Alice List &lt;<a href="mailto:alice-teachers@lists.andrew.cmu.edu">alice-teachers@lists.andrew.cmu.edu</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:CAByJi1uoxB-KuVt1ohQ60nmJQOLfp-RnnAO4-P64fo6Az1JEOg@mail.gmail.com">CAByJi1uoxB-KuVt1ohQ60nmJQOLfp-RnnAO4-P64fo6Az1JEOg@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
I&#39;m not sure what I am doing wrong, but I am trying to do the Chase scene<br>
in Chapter 7 of the Programming with Alice book using While in the chase<br>
method.  I am unable to drag the &quot;goldfish distance in front of shark&quot;<br>
function into the &quot;true&quot; condition of the while.  I keep getting a red<br>
outline around the command.<br>
<br>
Thanks for any help.<br>
<br>
Ron. Guillemette<br>
<br>
Computer Technology and Game Design<br>
The Regional Career &amp; Tech Center @ Coventry High<br>
40 Reservoir Road, Coventry, RI 02816<br>
<a href="tel:401-822-9499%20ext%20287" value="+14018229499">401-822-9499 ext 287</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20140127/93bc5355/attachment-0001.html" target="_blank">http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20140127/93bc5355/attachment-0001.html</a><br>

<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Mon, 27 Jan 2014 06:09:44 -0800 (PST)<br>
From: Frank Hulsman &lt;<a href="mailto:frankhulsman@yahoo.com">frankhulsman@yahoo.com</a>&gt;<br>
Subject: Re: alice-teacher Conditional Loops<br>
To: Alice educators &lt;<a href="mailto:alice-teachers@lists.andrew.cmu.edu">alice-teachers@lists.andrew.cmu.edu</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:1390831784.15942.YahooMailNeo@web161306.mail.bf1.yahoo.com">1390831784.15942.YahooMailNeo@web161306.mail.bf1.yahoo.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Alice 2.x??? That condition is looking for a Boolean (true / false) value.? What you are trying to drag in returns a number (distance).? The solution would be to first drag in a condition (World, Functions, Math, A &gt; B).? Place numbers initially into A and B (1, 2), then replace one? with the function you want use (&quot;goldfish distance in front of shark&quot;) and then how far in front....<br>

?<br>
Frank Hulsman<br>
St. Xavier High School<br>
Louisville, Ky<br>
<br>
From: Ron Guillemette &lt;<a href="mailto:rgilmet123@gmail.com">rgilmet123@gmail.com</a>&gt;<br>
To: Alice List &lt;<a href="mailto:alice-teachers@lists.andrew.cmu.edu">alice-teachers@lists.andrew.cmu.edu</a>&gt;<br>
Sent: Monday, January 27, 2014 9:00 AM<br>
Subject: alice-teacher Conditional Loops<br>
_______________________________________________<br>
alice-teachers mailing list<br>
<a href="mailto:alice-teachers@lists.andrew.cmu.edu">alice-teachers@lists.andrew.cmu.edu</a><br>
<a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers" target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a><br>
</blockquote></div><br></div>