중첩 된 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]
false이면 다음 문을 실행합니다.
dt: newColumnName = colInstructions[k-1] || " & " || colInstructions[k]));
어떤 도움을 주시면 감사하겠습니다.
Re : 중첩 된 if 문안녕하세요,
회신 해 주셔서 감사하지만 다음 진술을 원합니다.
dt:newColumnName = colInstructions[k - 1] || " & " || colInstructions[k];
루프 내부에 있어야합니다.
그 주위에 어떤 방법이 있습니까?
Re : 중첩 된 if 문첫 번째 인수가 거짓으로 계산 된 경우 평가할 식은 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]
);