I have a block! x: ["one" "two" "three"]
index? find x "two" returns... 2
index? find x "four" returns...
** Script Error: index? expected series argument of type: series port
** Near: index? find x "twos"
What's the best way to have index? return none rather than the error?
index? expects a series. If the argument is none, it will raise an error.
You can either check if the argument exists or is a series or guard against the error e.g.
or