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.
The policy of the boards is to only offer help with assignments when a good faith effort on the part of the student to attempt the work themselves has been shown.
So post a world with your best attempt at the assignment and we'll guide you from there.
Give it your best shot, post your world, and we'll help you from there.
Last edited by debussybunny563; 12-21-2012 at 12:00 AM.
|--------------------------------------------------------------------------------------------------|
|Link to weapons collection: http://www.alice.org/community/showthread.php?t=7368 |
|--------------------------------------------------------------------------------------------------|
I have been dead for quite some time now; not much hope for resurrection.
This helped me tremendously. Thank you - I have another question for you, this one involves a loop and a if /else statement. Do you think you could help me there as well? I have attached the file - if you can help me with this one as well I could get my actual file closer to the finish line.
Last edited by Schmausie; 10-27-2010 at 08:28 PM.
Reason: Added file