Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Nested If/Else?
Old
jkidd
Member
 
Status: Offline
Posts: 21
Join Date: Jun 2018
Default Nested If/Else? - 06-25-2018, 03:19 PM

Hey guys -

I am working on an assignment that requires me to have a bouncer ask for the user's age. If the user is below 21, they don't get in. If the user is above 21, they're too old. If the user is indeed 21 years old, they get into the bar.

I have tried every combo that I can think of, and have read the class textbook, but can't make it work. Click on the following link to see a screenshot of my method in Alice: https://image.ibb.co/hyYpuo/ifelse.jpg

Any help or advice would be great!

Thanks.
   
Reply With Quote
 

Thread Tools
Display Modes

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 ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.