ほぼ完成しましたが、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>
こんにちは、ジム... 以前にもそうしたことがあると断言できます... セミコロン、カンマ、括弧を何回もチェックしました...
そうは言っても... ありがとうございます... 今は完璧に動作しています...
どうしてこれにこんなに時間を費やしたのかわかりません。遅すぎます。