Help with using input values with variables along with if, else if code

I see

can you call handleInput not in draw but when the submit button is hit

(sorry I don’t know p5.js)

Warm regards,

Chrisir