Issue with using array after splitTokens()

you should not try to make a command short / snappy
like nesting commands if you not know what is happening inside.

so stick to the example and get a string first.

  • that string might be null
  • if not null should trim it first

after that a split ( like for “,” ) gives a error if there is no “,”
so try a match first
if ok do the split to array.
when using the array you must check on the length of the array,
if you get 2 values, one “,” you get array length 2
but if you have com problems might get short lines,
so you check
if length >= 2 else println(“bad line”);
finally you can inside use a input[0] and input[1]