Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
For..Next
#7
@Dimster, there were too many grammatical errors in it, so the IDE had problems.

It's now grammatically correct, but the output is confused.
Code: (Select All)

For x = 1 To 5
  If x + 1 = 3 Then
    Print "Still within the x loop"
    Print "Loop is 1 to 5, loop variable x presently is "; x + 1
    For m = x + 1 To x + 4
      If x + 1 = 5 Then
        Print "At the end of the x loop"
        Print "The next x value will be 6 so none of this will be printer"

        For y = 1 To 3
          Print "Value of y is now "; y
        Next
        For z = 1 To 4
          Print "Value of z is now "; z
        Next
      End If
    Next
  End If
Next

[Image: Wirrwarr2024-05-18.jpg]
Reply


Messages In This Thread
For..Next - by Dimster - 05-17-2024, 03:27 PM
RE: For..Next - by SMcNeill - 05-17-2024, 03:58 PM
RE: For..Next - by Dimster - 05-17-2024, 05:00 PM
RE: For..Next - by PhilOfPerth - 05-18-2024, 01:56 AM
RE: For..Next - by DSMan195276 - 05-18-2024, 04:28 AM
RE: For..Next - by Dimster - 05-18-2024, 01:09 PM
RE: For..Next - by Kernelpanic - 05-18-2024, 03:48 PM



Users browsing this thread: 1 Guest(s)