Return

Beendet das von Runsub ausgelöste Subskript in einem anderen Skript.

Return speichert einen einzelnen Wert in der ReturnValue-Eigenschaft und gibt ihn an das Skript zurück, das das Subskript aufgerufen hat. ReturnValue wird in der ReturnVariable-Eigenschaft in der Runsub-Aktion gespeichert.

Return sollte die Kontrolle immer an das Hauptskript zurückgeben. Ein Skript sollte nicht in einem Subskript enden.

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.

Allgemein

E-Mail Chat Telefon Voicemail Arbeitselement SMS Digital

Input Properties

Diese Eigenschaften definieren Daten, die von der Aktion bei der Ausführung verwendet werden.

Eigenschaft

Beschreibung

Caption

Geben Sie eine kurze Phrase ein, mit der diese Aktion im Skript eindeutig identifiziert wird. Die Beschriftung wird im Skript-Arbeitsbereich unter dem Symbol der Aktion angezeigt. The default is the action name.

ReturnValue

Die Variable, die den Wert enthält, den Sie an das Hauptskript übergeben möchten. Dieser Wert wird in der Eigenschaft ReturnVariable der Runsub-action im Hauptskript gespeichert.

Result Branch Conditions

None

Tips & Tricks

ReturnValue kann ein Array oder ein dynamisches Datenobjekt sein. Wenn Sie ein dynamisches Datenobjekt verwenden, konvertieren Sie es mit der Funktion asjson() oder asxml() in das JSON- oder XML-Format. Anschließend können Sie das JSON oder XML als einzelnen Stringwert an das Hauptskript übergeben. Im Hauptskript können Sie den Wert wieder in ein dynamisches Datenobjekt konvertieren.

Script Example

Bei diesem Beispiel handelt es sich nicht um ein vollständiges Skript. Zur Verwendung dieser Aktion muss das Skript vervollständigt werden.

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?