mIRC Home    About    Download    Register    News    Help

Print Thread
#270222 02/05/22 05:54 AM
Joined: Jan 2004
Posts: 2,127
maroon Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
The fix of this
https://forums.mirc.com/ubbthreads.php/topics/269642/nested-while-loops-issue
bug appears to have caused another one to pop up, as this new behavior is not in nobeta 7.67

Executing /while_continue1 or pasting the interior //command into the editbox now results in an infinite loop due to repeatedly executing the initialization for i=1 as well as the red echo. However, it's suffiicient to avoid the infinite loop by /while_continue2 having the closing bracket for the while() being on a separate line

Note: you will need ctrl+break to exit /while_continue1

Code
alias while_continue1 {
  //var -s %i 1 | echo 4 this should show only once | while (%i < 10) { echo 3 while loop i= %i | if (1) { inc -s %i 2 | continue } | }
}
alias while_continue2 {
  //var -s %i 1 | echo 4 this should show only once | while (%i < 10) { echo 3 while loop i= %i | if (1) { inc -s %i 2 | continue }
  }
}


also infinite loop:
//var -s %i 1 | echo 4 this should show only once | while (%i < 10) { echo 3 while loop | inc -s %i | if (1) continue }

Joined: Dec 2002
Posts: 5,433
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,433
Thanks this issue has been fixed for the next version.


Link Copied to Clipboard