This word was used as an input to a primitive requiring
true or false as input (e.g.,
if,
ifelse,
and,
or, and
not). This happens in
instructions like the following:
if first answer = "Y [fd 50]
and
if first text1 = "A [fd 50]
In this case, text1 = "A> runs
first. Suppose it reports
false because
text1 is not equal to A. Then
first of false reports the
first letter of the word false, that is f. MicroWorlds will
complain that f is not true
or false. In cases like this,
use parentheses to force MicroWorlds EX to do first text1
before doing the equal sign.
The two instructions above should look like this in order to work:
if (first answer) = "Y [fd 50]
and
if (first text1) = "A [fd 50]
Here, first text1 reports a
letter and this letter is then compared to the letter A.
The equal sign reports true if they are equal, false if
they aren't.