Using Out parameter
I might be dumb but I can't wrap my head around the Out parameter in self defined methods.
Is Out used to create a boolean value? When do I call upon it and why?
I was cruising through the course but I just don't understand this parameter, while I think it's probably not even that difficult. :P
I asked ChatGPT to explain it to me like I'm 12 and I still didn't get it!
Just made it work after a lot of trial and error in CodeAcademy but honestly barely knew what I was doing with it and why. See code for reference!
Can someone maybe help me grasp it a bit better? :)

6 Replies
Just noticed that my code didn't even apply the method that I've created, here is the corrected version for reference. :

you printed the string not the out var
Compile C# code in #bot-spam, use
!eval
Example:
SlimStv
REPL Result: Success
Console Output
Compile: 465.638ms | Execution: 33.264ms | React with ❌ to remove this embed.
Yess, thankyou. That's a good example. :)
aight goodluck!