2

How to initialize and make condition for 2 variables in single for loop in Flex

let keep i and j are two variables

2 Answers 2

3

like this:

            for(var i:int=0,j:int=2;i<10 && j<20;i++,j+=2){
                trace(i);
                trace(j);
            }
Sign up to request clarification or add additional context in comments.

Comments

2

You may try :

for (var i:uint = 0, j:uint = 0; i < something, j < something_else ; i++, j++) {
   //...
}

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.