I'm new to JSL. I have a text string that contains values separated by a "#". The numbers are to be grouped in 3 columns
I know I can write a code to put the values in columns being separated by the "#", but how do I then create a table of 3 values in each row, until the table is complete. I know I'll also probably need to remove the first "#" to prevent issues as first 3 numbers would be in 2nd to 4th column.
For example:
| #1#0.93#0.99#2#1.92#1.99#3#2.9#2.99#4#3.86#3.98#5#4.85#4.98 |
can go to this:
1 | 0.93 | 0.99 | 2 | 1.92 | 1.99 | 3 | 2.9 | 2.99 | 4 | 3.86 | 3.98 | 5 | 4.85 | 4.98 |
But how do I write the JSL code to get it to this:
| Value1 | Value2 | Value3 |
| 1 | 0.93 | 0.99 |
| 2 | 1.92 | 1.99 |
| 3 | 2.9 | 2.99 |
| 4 | 3.86 | 3.98 |
| 5 | 4.85 | 4.98 |
In this example there are 5 rows in table but the number of rows could vary.