19 Replies
fyi
loopcounter == maximumLoop || loopcounter > maximumLoop
can be simplified as loopcounter >= maximumLoop
@MaGiiKx
this issue
that count is still 0?
basically the loopcounter is not incrementing to stop at maximum loop
yes thats the problem
nothing is incrementing
the only thing that is recognised after its parsed is the maximumloop
try debugging
$debug
Tutorial: Debug C# code - Visual Studio (Windows)
Learn features of the Visual Studio debugger and how to start the debugger, step through code, and inspect data in a C# application.
altho u are printing the loop counter before you increment it
and u have a redundant if condition
both if conditions do the same thing
in other words, your else if will never get executed
So I should get rid of one of the if statement?
well do you need their logics?
its up to you to know
do you want to execute this piece of code
or this
or both of them?
I just want the loop to end once it’s met the max counter
And if loop counter doesn’t equal to maxloop, continue looping
So I would need both of them
what loop?
ill show you what the application looks like

basically the user is able to enter the command loop x and a shape and end
it should draw the shape x amount of times specified in the loop
better not debug with commandcheck.AppendText
and use this one $debug
Tutorial: Debug C# code - Visual Studio (Windows)
Learn features of the Visual Studio debugger and how to start the debugger, step through code, and inspect data in a C# application.
there's a flaw in your logic, thats all
oh, i tried debugging with console, but it says argument out of range
ive not been able to fix it