If

Évalue une expression et suit une branche en fonction du résultat de l'évaluation (vrai ou faux). Vous pouvez également utiliser une déclaration IF dans une action Snippet dans votre script.

 

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.

Générique

Email Conversation Téléphone Messagerie vocale Élément de travail SMS Digital

Input Properties

Ces propriétés définissent les données que l'action utilise lors de son exécution.

Propriété

Description

Caption Remplacez la Caption par quelque chose qui identifie cette action dans le script de manière unique. Le rapport série d'appuis dans l'ivr IVR contient le nom de l’action et sa légende. L’emploi de légendes descriptives et uniques facilite la lecture et la compréhension des rapports.Use only for BEGIN CASE IF IVRLOG MENU and REQAGENT
Expression Une évaluation d'une valeur pour déterminer si l'expression est TRUE ou FALSE. Par exemple, TOTAL=>0 (Total égal ou supérieur à 0).

Result Branch Conditions

Les conditions de branche de résultat vous permettent de créer des branches dans votre script afin de gérer différents résultats lors de l'exécution d'une action.

Condition

Description

True

Chemin emprunté si l'expression est vraie.

False

Chemin emprunté si l'expression est fausse.

Script Example

Cet exemple n’est pas un script entier. Une rédaction de script complémentaire est requise pour l’utilisation de cette action.

When this script is triggered, the number of available agents are counted. The If action uses the expression TOTAL>0 to determine which branch to take. If the total number of available agents is greater than 0, a menu will provide options to the caller. If the total number of agents is not greater than 0, then a message will play and the script will hang up the call.

Would you like to download this script?