View Single Post
Senior Member
reuben2011's Avatar
Status: Offline
Posts: 489
Join Date: Sep 2009
Location: Hawaii
Default 03-09-2011, 11:49 AM

Originally Posted by Vorrox View Post
I am having a problem, where I want to use a while loop to compare two strings, and move on to an if statement once the condition is met. The condition being that the string must equal either "Trick" or "Treat". Once it equals either of those, I want it to run an if statement to check which one was entered, and then respond accordingly. I apologize if this doesn't make much sense, I am very tired.

while stringVariable!="trick" and stringVariable!="treat"
Do nothing
if stringVariable =="trick"
//Insert methods
if stringVariable=="treat"
//Insert methods

-Escape the Kitchen
-That ninja animation
-Hill Collision

Upcoming Projects
-Some penguin adventure game?
Reply With Quote