Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Help with if / else statement
Old
Schmausie
Guest
 
Status:
Posts: n/a
Default Help with if / else statement - 10-27-2010, 07:09 PM

I am hoping to find some answers here for my problem. I cannot figure out how to create this statement.
I have 3 people walking toward another person. Once that person is reached he asks how many tickets would you like to buy, they are $4 each. Here the user is asked for input. User inputs number up to 3 and the 4th person will state the amount and all 3 people will walk through gate. If user inputs anything over 3 people nothing happens, if user inputs number 1 or 2 the 4th person says, you need to purchase more tickets and asks again for tickets to be purchased.

I would appreciate any help I can get. This has been driving me crazy. I would like to say thank you for all your help in advance.
   
Reply With Quote
 

Tags
if/else statement, math


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.