0
Is there a way to make the playground wait for part of a code to finish before asking for user input?
5 Antworten
+ 1
I think there's no way.
This app already asks all the inputs needed for your program by the moment you run it.
If you need multiple inputs, you could just put them all at once by separting them into different lines.
Example, by the time you run the program:
Enter all your inputs:
Input1
Input2
Input3
That's one of the drawbacks of the code editor of this app.
0
Thank you for the answer. I guess I'll just have to wait and hope it'll be in the next update.
0
Not sure how much the app supports, but I'd try a boolean variable and an if statement.
Have the code you want completed produce a result that is then used by an 'if' statement to run the code that retrieves input.
if (methodIWantComplete = true) {function that gets input}
It's probably a horribly inefficient way to do something, and I may be missing the point... I just hope this helps. Good luck.
0
The bool idea was smart but it still didn't work. I guess the compiler scans for ReadLine code so the inputs have to be at the begining.
0
I wouldn't wait for an update if I were you. The company that makes this have apps just like this for other languages. For all I know they all might run off of JavaScript or something: this means it's possible support will always be limited.
Aside from that, this language is best developed through a program like Visual Studio or MonoDevlop since they provide extra debugging features. The base Visual Studio and full MonoDevelop are free.