Android Question for i question

Discussion in 'Android Questions' started by tufanv, Mar 31, 2015.

  1. tufanv

    tufanv Expert Licensed User

    Hello i have 2 quesitons for

    "for i next"

    1) I want to use for i backwards. like for i=8 to 3 . Can it work if i use for i =8 to 3 step -1

    2) how can i exit the for next : for example if answer is wrong exit the loop

    Ty
     
  2. Troberg

    Troberg Well-Known Member Licensed User

    Yes and yes.

    Code:
    For i=8 to 3 Step -1
      
    If Abort Then
        
    Exit
      
    End If
    Next
     
    Peter Simpson likes this.
  3. tufanv

    tufanv Expert Licensed User

    Ty very much
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice