a simple cycle without any condition

GamBIT

New member
Hello!

A little but useful request.
Please make a simple cycle without any condition. For not to make the cycles like 'cycle for 999999999'
It is a common case when we need a simple cycle to run a program with no time or optional limitations. Always.
Now we have to invent some conditions that would not ever happen, but why..

It could be easily done in the cycle's dialogue with the 4-th string [no condition] plus to the 3 existing.

Thanks!
 

Dm114

Well-known member
Hello!

A little but useful request.
Please make a simple cycle without any condition. For not to make the cycles like 'cycle for 999999999'
It is a common case when we need a simple cycle to run a program with no time or optional limitations. Always.
Now we have to invent some conditions that would not ever happen, but why..

It could be easily done in the cycle's dialogue with the 4-th string [no condition] plus to the 3 existing.

Thanks!
If used in a loop be careful of endless loops.

There is very simple way to do what are looking. You can use a condition like Battery level<0 that would never happen.

I use the condition Battery level>0 in a loop to allow this part of the macro either to Continue (restart the loop from the beginning) or Break from loop (exit this loop and continue the rest of the macro) at any time, depending on conditions during execution. It's a kind of convenient GoTo statement.
 

GamBIT

New member
If used in a loop be careful of endless loops.

There is very simple way to do what are looking. You can use a condition like Battery level<0 that would never happen.

I use the condition Battery level>0 in a loop to allow this part of the macro either to Continue (restart the loop from the beginning) or Break from loop (exit this loop and continue the rest of the macro) at any time, depending on conditions during execution. It's a kind of convenient GoTo statement.
Thanks for your warning but I'm always careful.
You have written the same with me. I always use some fake conditions just to make a cycle be running. And it's a little bit annoying.
Honestly I wonder why there's not done the most primitive case of the cycles - 'no condition cycle'. For ex, almost any С-projects are running inside a void endless cycle.
 

GamBIT

New member
I just suggest make an option 'no condition' to a standard dialogue of creating a cycle. Without need to program smth on Java.
 

mapriex

Active member
I just suggest make an option 'no condition' to a standard dialogue of creating a cycle. Without need to program smth on Java.
you can make a conditon with a static question true == true. maybe for better readibility you can use a local variable 'endlessloop' (set to true) == true.
 

GamBIT

New member
I ask the developer simply add an option 'no condition' in the DO / WHILE cycling command.
Just to make programming easier, not doing some strange fake conditions for only do the same 'no condition cycle'.
 

Endercraft

Moderator (& bug finder :D)
Just like
for {
// code here
}
in Go.
Anyway this would be a good addition because to less experienced users using "true = true" in a condition might not make sense (assuming they even come up with that idea).
 
Top