C
C#2y ago
SkyFlex

✅ Trying to use "Return" and wont work

I'm pretty confused on how to use "Return;" while using the "For loop process" and whenever I tried using "else" and "ifs" it wont work. can anyone help me with this problem?
9 Replies
Klarth
Klarth2y ago
What are you expecting to accomplish by using return?
SkyFlex
SkyFlexOP2y ago
to close the prompt
Klarth
Klarth2y ago
It should be exiting the program here. So technically it closes the prompt. thisisalright
SkyFlex
SkyFlexOP2y ago
yeah but instead of doing that it starts continuing instead of closing it 💀
Klarth
Klarth2y ago
Can you $paste your code so I can try to run it over here?
MODiX
MODiX2y ago
If your code is too long, you can post to https://paste.mod.gg/ and copy the link into chat for others to see your shared code!
SkyFlex
SkyFlexOP2y ago
BlazeBin - txgmvajhrzfq
A tool for sharing your source code with the world!
Klarth
Klarth2y ago
if (i == 2) You want that instead. You're using a bit of a weird pattern. for (int i = 1; i <= 3; i++) or change your loop conditions
SkyFlex
SkyFlexOP2y ago
Poggers it worked thx for the help With such a small issue didnt noticed thx
Want results from more Discord servers?
Add your server