Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

Reply
 
Thread Tools Display Modes
If/Else
Old
esayago
Junior Member
 
Status: Offline
Posts: 6
Join Date: Jun 2015
Default If/Else - 06-20-2015, 05:00 PM

Hey guys, just wanted to share with you what I've learned today with Alice. If/Else statements are just amazing, you can have your program decide what to do depending on the result of an equation or any data you may want to enter, you can do this by using an If/Else statement and and compare results or use true or false values. As you can see this type of statements allows the programmer to compare two variables, but you can actually have more possible answers by adding another if/else statement inside the existing if/else statement. make sure you use functions from the wold object, take a look at those, to use them you have to drag and drop them over (true or false) the existing parameter..

Have fun
   
Reply With Quote
Old
cmachua
Junior Member
 
Status: Offline
Posts: 12
Join Date: Jun 2015
Default 06-21-2015, 02:20 AM

How cool, I'll be doing this in the morning. Finally my book is here and I can catch up.
   
Reply With Quote
Reply

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.