botanic Posted December 15, 2006 Posted December 15, 2006 I have a variable $number and i need it to increse by 1 everytime it is used how can i do that?
Skrip Posted December 15, 2006 Posted December 15, 2006 $Number = 1 While 1 $Number = $Number + 1 Wend [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]
xcal Posted December 15, 2006 Posted December 15, 2006 Or you can use the += operator. $Number = 0 ;this could start at 0 or 1 depending on where you evaluate the $Number in the loop While 1 $Number += 1 Wend How To Ask Questions The Smart Way
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now