Return

Voltooit het subscript getriggerd door Runsub in een ander script.

Return slaat een waarde op in de eigenschap ReturnValue en stuurt deze terug naar het script dat het subscript heeft aangeroepen. De waarde ReturnValue wordt opgeslagen in de eigenschap ReturnVariable van de Runsub-actie.

Return moet altijd teruggaan naar het hoofdscript. Het is een goed gewoonte om een script niet te laten eindigen in een subscript.

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.

Generiek

E-mail Chat Telefoon Voicemail Werkitem SMS Digitaal

Input Properties

Deze eigenschappen definiëren gegevens die de actie gebruikt bij het uitvoeren.

Vertakking

Beschrijving

Caption

Voer een korte woordgroep in die deze actie in het script uniek identificeert. Het bijschrift verschijnt op het scriptcanvas onder het actiepictogram. The default is the action name.

ReturnValue

De variabele die de waarde houdt die u aan het hoofdscript wilt doorgeven. Deze waarde wordt opgeslagen in de eigenschap ReturnVariable van de Runsub action in het hoofdscript.

Result Branch Conditions

None

Tips & Tricks

De ReturnValue-eigenschap kan een array of een dynamisch gegevensobject zijn. Als u een dynamisch gegevensobject gebruikt, moet u dit converteren naar JSON of XML met de functie asjson() of asxml(). Vervolgens kunt u de JSON of XML doorgeven aan het hoofdscript als een enkele stringwaarde. In het hoofdscript kunt u de waarde weer converteren naar een dynamisch gegevensobject.

Script Example

Dit voorbeeld is geen volledig script. Er is extra scriptwerk vereist om deze actie te gebruiken.

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?