Return

다른 스크립트에서 Runsub에 의해 트리거된 하위 스크립트를 완성합니다.

ReturnReturnValue 속성에 단일 값을 저장하고 하위 스크립트를 호출한 스크립트로 다시 전달합니다. ReturnValueRunsub 작업의 ReturnVariable 속성에 저장됩니다.

Return은 항상 기본 스크립트로 제어를 반납해야 합니다. 가장 좋은 방법은 하위 스크립트에 있는 동안 스크립트를 종료하지 않는 것입니다.

Supported Script Types

The icon for a Generic script type - a rectangle with < and > symbols inside it.

The icon for the Email script type - a large @ symbol in a diamond.

The icon for the Chat script type - a chat bubble with an ellipsis inside (...), in a diamond shape.

The icon for the Phone script type - an old-style phone handset with curved lines indicating sound coming out of it.

The icon for the Voicemail script type - a symbol that looks like a cassette tape - two circles sitting on a horizontal line.

The icon for the Work Item script type-a piece of paper with one corner folded down and a bullet list on it.

The icon for the SMS script type - a smart phone with a chat bubble coming out of it.

The icon for the Digital script type - a computer monitor with a smartphone next to it.

일반

이메일 채팅 전화 음성 사서함 작업 항목 SMS 디지털

Input Properties

이러한 속성은 실행할 때 작업이 사용하는 데이터를 정의합니다.

속성

설명

Caption

스크립트에서 이 작업을 고유하게 식별하는 짧은 문구를 입력합니다. 캡션은 스크립트 캔버스의 작업 아이콘 아래에 표시됩니다. The default is the action name.

ReturnValue

기본 스크립트에 전달하려는 값을 보유하는 변수. 이 값은 기본 스크립트에서 Runsub actionReturnVariable 속성에 저장됩니다.

Result Branch Conditions

None

Tips & Tricks

ReturnValue는 배열 또는 동적 데이터 개체일 수 있습니다. 동적 데이터 개체를 사용하는 경우 asjson() 또는 asxml() 함수를 사용하여 JSON 또는 XML로 변환합니다. 그런 다음 JSON 또는 XML을 기본 스크립트에 단일 문자열 값으로 전달할 수 있습니다. 기본 스크립트에서 값을 다시 동적 데이터 개체로 변환할 수 있습니다.

Script Example

이 예시는 완전한 스크립트가 아닙니다. 이 작업을 사용하려면 추가 스크립팅 작업이 필요합니다.

The example below is a subscript that uses three Return actions to values back to a main script.

Would you like to download this script?