Jump to content

Advice on a Gaming Script


Recommended Posts

Do
    Function1()
Until $parameter = "parameter" Or $parameter2 = "parameter"
Function2()
Function3()

This will repeat Function1() until $parameter equals the string "parameter", or until $parameter2 = "parameter". After 1 or both of those conditions are true, it executes Function2 and Function3.

Edited by sandman

[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Link to comment
Share on other sites

Thanks alot, ive had a few problems writing my script but so far ive solved all the problems myself through trail and error but this one got me Thanks for the help guys.

No narayanjr, i want function 1 to repeat and then execute function 2 if xxx parameter is met, and function 3 if yyy parameter is met, just like samdman shows, thanks for your post though.

Edited by Ginseng
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...