Why doesn't it print the "Test Again"? (Lua)?
After the counter in the output window reaches 10, it should no longer write "Test" but rather "Test again" – but it doesn't.
Can someone help me? (Lua, Roblox Studio)
Thank you
After the counter in the output window reaches 10, it should no longer write "Test" but rather "Test again" – but it doesn't.
Can someone help me? (Lua, Roblox Studio)
Thank you
Hello, I have a push aid for my wheelchair that's operated via Bluetooth. It has three functions: Faster, Slower, and Stop. It also has a phone app (only for information, not for controlling the device) that connects via Bluetooth. I program in Java as a hobby and do little gadgets with Arduino. So, I'm far…
Hello, is there a website other than Pastebin, with the Hastebin design, that doesn't delete entries? So, it keeps them forever? Thanks.
Hello, I have rented a domain from Ionos. Can I now program (create) my website with WordPress or do I have to sign a web hosting contract?
What happens if you want to use DbSet.Add to save an object that has the same content as an object that is already in the database, but is not the same object?
Where did you learn C/C++/C#? What would you recommend ?
What CPU does a PC (server) need to run as a server for Fivem with 50 people and many mods for a maximum of 300€ but not hosting.
How can the counter reach the 10? In the While loop, the value of the variable Zaehler is nowhere increased!
(And it doesn’t look like a different process would run in parallel that would affect the variable.)
“Test” is repeatedly output and waited for a short time without any change in this. You have an endless loop.
There’s something going on while it’s smaller
You need to increase the counting variable within the “while” block somewhere – otherwise you just have an endless loop.
The counter is nowhere incremented or the value otherwise changed and thus has never a value greater than or equal to 10 which is required for the output “Next Test”. You would have to increment Zaehler after the If (or where different) so that it is possible to take a For loop.
lg Suiram1
A good day, dear,
let’s go through your code.
Zaehler = 1
as long as the counter is less than or equal to 10:
write “Test”
Wait 1ms
If the counter is greater than or equal to 10, write “Next test”
Ready.
And how should the Zaehler reach 10? He stays one because you don’t raise him. You have an endless loop.
Best regards
Let’s just go through this in mind:
Zaehler is 1
The grinding head checks whether Zaehler is <= 0.
Yeah, it is. So he’s giving out “test.”
Then he’ll wait a second.
Then he checks if Zaehler is greater than or equal to 0.
If he is not, he skips the task.
Simple answer: He doesn’t give “Next test” because Zaehler is smaller than 10.
I assume that you noticed that you built an endless loop because your counter is not raised.
Your counter doesn’t count. You initialize the variable, but then it no longer changes.