조건에 따라 다른 명령 실행하기

엑셀의 셀 값에 따라 실행되는 명령 흐름을 다르게 하고 싶은데 가능할까요?

예를 들어 C3 셀에 셀 값이 있는 경우, A 흐름을 실행하게 하고, 없는 경우 B흐름을 실행하고 싶어요.
어떻게 하면 구현 가능할까요?!

for a binary decission we can fork with an if activity

when more fork parts are to address we can use

  • switch actvitiy
  • else if

안녕,
당신이 가지고 있는 조건의 수에 따라 다릅니다.

  1. 두 값 사이에 있으면 간단히 IF 활동을 사용할 수 있습니다.
  2. 두 개 이상의 값 사이에 있는 경우 다음 중 하나를 선택할 수 있습니다.
  • 시퀀스를 사용하는 경우 SWITCH 활동
  • 봇 구축을 위해 흐름도를 사용하는 경우 FLOW DECISION 활동
  1. 또는 원하는 대로 n개의 if 조건을 사용할 수 있는 ELSE IF를 사용할 수 있습니다.

도움이 되었기를 바랍니다 @sooyeon_Lim

Hi @sooyeon_Lim

Try this:

1. Excel Application Scope (Open Excel File)
   - Read Cell (Read cell C3 and store the value in a variable cellValue)
2. Flow Decision (Check cellValue)
   - Condition: String.IsNullOrEmpty(cellValue)
   - If True:
     - Flow B (Actions to perform when the cell is empty)
   - If False:
     - Flow A (Actions to perform when the cell has a value)
3. Continue with the rest of your automation.

Hope it helps!!

read cell을 어디에 save to 하게 되어 있는데 어디에 저장해야 하나요? 클립보드?

이렇게만 봐서는 어떻게 하는지 이해가 잘 되지 않네요.ㅠ

Hi @sooyeon_Lim

You can save the output of Read Cell in a variable. It will be of type System.String.

image

Regards,


저는 왜 read cell이 없을까요?
대신 read cell workbook은 있어요. 이렇게 설정해도 되나요?

@sooyeon_Lim

Save it an variable like CellValue.

Regards,