We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I'm trying to store user input inside a variable. The following is my code:
var input;
var string;
function setup(){
input = createInput();
string = input.value();
}
When I print string it is empty. Why isn't it storing the value for input? Is there a way to store input inside a variable?
Answers
https://Forum.Processing.org/two/discussion/15473/readme-how-to-format-code-and-text
https://p5js.org/reference/#/p5.Element/input
https://Forum.Processing.org/two/discussion/24033/how-to-check-if-dom-slider-is-currently-in-use