How can I use the input value as a variable with two arguments?

Why don’t you make 2 more inputs? :thinking:
In case you don’t, you’re gonna need split() or splitTokens():

  1. https://p5js.org/reference/#/p5/split
  2. https://p5js.org/reference/#/p5/splitTokens