入れ子のifステートメント
こんにちは、
次のifステートメントが正しく機能することを確認したいだけです。現時点ではエラーが発生しているので、ネストしたif文を作成した方法で行うことができると思いました。
If (ismissing(dt:newColumnName[k]), For Each Row(If(dt:colAutomatically <= colManually[k] & dt:colAutomatically >= colManuallyStart[k], dt:newColumnName = colInstructions[k], dt: newColumnName = colInstructions[k-1] || " & " || colInstructions[k]));
ifステートメントのconidtionは次のとおりです。
(ismissing(dt:newColumnName[k])
これが本当なら、私は次の文を実行したいです。
For Each Row(If(dt:colAutomatically <= colManually[k] & dt:colAutomatically >= colManuallyStart[k], dt:newColumnName = colInstructions[k]
これが偽の場合は、次の文を実行します。
dt: newColumnName = colInstructions[k-1] || " & " || colInstructions[k]));
任意の助けがいただければ幸いです。
再ネストifステートメントこんにちは、
お返事をありがとう
dt:newColumnName = colInstructions[k - 1] || " & " || colInstructions[k];
ループの内側にある
それを回避する方法はありますか。
再ネストifステートメント最初の引数がfalseと評価された場合に評価される式は、For Each Row()関数内にありました。このコード構造はあなたが望むことをするべきです:
If( Is Missing( dt:newColumnName[k] ),
For Each Row(
If( dt:colAutomatically <= colManually[k] & dt:colAutomatically >= colManuallyStart[k],
dt:newColumnName = colInstructions[k]
)
),
dt:newColumnName = colInstructions[k - 1] || " & " || colInstructions[k]
);