Question
how to set if, else???
for example:
if i want to text convert to table.
If have ";" x 4
header1;header2;header3;header4
col1;col2;col3;col4
(script 1)
| Header 1 | Header 2 | Header 3 | Header 4 |
|---|---|---|---|
| col1 | col2 | col3 | col4 |
else
if have ";" x5
(script 2)
var myTable = app.selection[0].convertToTable(";","\r");
header1;header2;header3;header4;header5
col1;col2;col3;col4;col5
| Header 1 | Header 2 | Header 3 | Header 4 | Header 5 |
|---|---|---|---|---|
| col1 | col2 | col3 | col4 | col5 |
and if have ";"x6 =(script 3), ";" x 7 = (script 4), ";" x8 (scr.......
i want only use a script to do, how can i do that??
thankyou>< love your![]()