Jump to content

Recommended Posts

Posted

Is it possible to make a script that does 3 functions but only repeats 1 and ignores the others until certain parameters appear? If so can anyone tell me where i can find info on how to do this? Thanks.

Posted (edited)

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]

Posted (edited)

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

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
×
×
  • Create New...