我几乎已经实现了这个;但似乎无法在 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>
嗨,吉姆......我敢发誓我以前这样做过......我检查了分号、逗号和括号的次数......
话虽如此...我感谢你...它现在运行完美了...
不知道我怎么花了这么多时间在这上面。太晚了。