Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

Reply
 
Thread Tools Display Modes
Getting Loopy
Old
rkhorn
Junior Member
 
Status: Offline
Posts: 8
Join Date: Dec 2017
Default Getting Loopy - 12-16-2017, 11:16 PM

I worked with loop and while today to get a character to jump in the air and spin a user-specified number of times. As a bonus I also had to figure how to accept possible variations in a "yes" response.

Since I couldn't figure out a possible existing function or combination of functions in Alice that could accomplish changing the case of an string entry, I just used some boolean logic checks to get it done.
   
Reply With Quote
getting loopy
Old
AguiJu
Junior Member
 
Status: Offline
Posts: 11
Join Date: Dec 2017
Location: Dallas
Lightbulb getting loopy - 12-16-2017, 11:56 PM

So what I did was create an if else statement inside my loop that said if true == answer "yes" OR == "Yes" OR == "YES"...That way it would except any of those values instead of changing the casing in the variable. Hope that helps
   
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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.