我幾乎有了這個;但似乎無法在 JSL 腳本中產生它。公式編輯器幾乎完全按照我想要的方式執行...但是當嘗試在腳本中執行此操作時...我似乎無法讓它工作。
期望的結果在第 2 列;我應用列編輯器中顯示的公式來獲得所需的結果。

//This is what I input into formula editor and it works fine;
item_lst = Words( Substitute( :Input, "/", "/;" ), ";" );
result_str = "";
For( i = 1, i <= N Items( item_lst ), i++,
If( item_lst[i] == "/",
result_str = result_str || "N",
result_str = result_str || "Y"
)
);
result_str;
When I try to create a new column within a JSL script and the I get the result in column 3. I seem to be nesting incorrectly and I can't seem to find this...
Here is the jsl code. Any help would be much appreciated.
da = Current Data Table();
da <<NEW column=""></NEW>
嗨吉姆...我可以發誓我以前這樣做過...我檢查分號、逗號和括號的次數...
那就是說......我謝謝你......它現在工作完美......
不知道我是如何花這麼多時間在這上面的。為時已晚。