Home
Project Folders
Teacher Resources
Student Resources
How Do I?
Literacy
MWForum
Site Map
Search
Our Team

MWForum Message [Date Index] [Threads] [Authors] [Attachments] [Subscribe]

[Thread Prev] [Thread Next]

To: MWForum <mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: MIA, Ask an Expert: answer having more than one word
From: "Daniel Ajoy" <da.ajoy@xxxxxxxxx>
Date: Sun, 20 Mar 2011 21:07:00 -0500

On Sun, 20 Mar 2011 12:45:01 -0500, Susan Weiss <sweiss@xxxxxxxxxxxxxxxxxx> wrote:

I tried this:
to questK1
question [What are the answers?]
ifelse answer = "|99 cookies|
ifelse answer = "|73 cookies|
[announce [That's right!] 	]
[announce [Wrong answer! Try again.]]
end

or instead of using ifelse use this form:


to questK1

question [What are the answers?]

if answer = "|99 cookies| [announce [That's right!] ]
if answer = "|73 cookies| [announce [Wrong answer! Try again.] ]

end

It will never happen that the procedure is going to announce:

That's right!

and then

Wrong answer! Try again.

because if the answer is "99 cookies" it will not be "73 cookies" at the same time. One response excludes the other.

Daniel
OpenWorld Learning



  • Previous by thread: Re: MIA, Ask an Expert: answer having more than one word
  • Next by thread: Re: MIA, Ask an Expert: answer having more than one word

  • To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.


    © copyright 2001 - 2008