But, if instead of letters we put numbers as data, the widget does not function properly.
Is it forbidden to use numbers or is it a bug ?
<$setvars foo="bar[7]" _bar="1 2 3 4 5 6 7 8 9 10">
<<foo>>
</$setvars>
By the way Tobias, I am giving you five ✮✮✮✮✮ for your pedagogy !
<$setvars foo="bar[7]" _bar="1 0 0 0 0 3 4 8 9 10">
<<foo>>
</$setvars>
returns 10 (not 4)
Thanks
JCG
{{{ 1 0 0 0 0 3 4 8 9 10 }}}
<$setvars foo="[bar[7]]" _bar="[[1 0 0 0 0 3 4 8 9 10]split[ ]]">
<<foo>>
</$setvars> <$setvars foo="[bar[7]]" _bar="[[]split:list{Some!!list}]">
<<foo>>
</$setvars>
{{{ 1 0 0 0 0 3 4 8 9 10 }}}
<$setvars foo="[bar[7]]" _bar="[[1 0 0 0 0 3 4 8 9 10]split[ ]]">
<<foo>>
</$setvars> And you adaptation of the split widget does perfectly the trick.You should add this to your examples, since it is not obvious!