LogoLogo
  • Go to Docs Center
  • Meet Plum Fuse
  • Tutorial
    • Basics
    • Deployment
    • Building A Complex Application
  • How to...
    • Send SMS messages using the REST module
    • Use the SMS Module
    • Upload an Audio Recording to Storage
    • Use Plum's Transcription API
  • Fuse Navigation
  • Application Manager
    • New Application
    • Managing Applications
    • Folders
  • Template Center
  • Deployments
    • Deployments Table
    • Creating Deployments
    • Updating Deployments
    • Deleting Deployments
    • Outbound Deployments
  • Logs
  • Reports
  • My Account
    • Global Options
    • Admin Options
  • Users & Sharing
    • Single Sign On
  • Application Editor
    • Application Editor Overview
    • Settings
      • Language Settings
        • Text-To-Speech (TTS) Options
      • User Input Settings
      • Connection Settings
      • Post-Call Webservice
      • JavaScript Libraries
    • Audio Manager
      • Languages
      • Prompt Table
      • Audio Formats
      • Bulk Uploading Audio Prompts
    • Modules
  • Modules
  • Call-Flow
    • Prompt
    • Transfer
    • Go To App
    • Go To Page
    • Compare Variable
    • Counter
    • Exit
    • Call Log
    • Label
    • Subdialog
  • Input
    • Address
    • Yes/No
    • Custom Field
    • Date/Time
    • Number
    • Digits
    • Language
    • Menu
    • Dynamic Menu
    • Name
    • Record
  • Data
    • Email
    • SMS
    • Set Variable
    • Call Recording
    • Evaluate JS
    • REST
    • SOAP
  • Integration
    • Setting up authentication
    • Dialogflow
    • DynamoDB
    • AWS S3
  • Variables
    • Shadow Variables
  • Module Settings
  • Key Fuse Info
  • 📞Outbound
    • Queuing Calls with CSV
    • View Pending Calls
    • Viewing Completed Calls
    • Detecting Voicemail
    • Outbound Parameters
    • Outbound FAQs
  • 🔒Data Security
    • 'Private' Mode
    • Managing Secure Phone Numbers
    • Sensitive Data Types
  • 🔑APIs
    • Authentication
    • Outbound Calls
      • Queue Call
      • Queue Multiple Calls
      • Get Outbound Call Status
      • Cancel Outbound Calls
    • Logs
      • Get Call Logs
      • Get Call Logs With Details
      • Get A Detailed Call Log
  • 🗒️Release Notes
Powered by GitBook
On this page
  • Function
  • Comparisons
  • Module Settings
  • Private
  • Compare Types
  1. Call-Flow

Compare Variable

PreviousGo To PageNextCounter

Last updated 5 years ago

Function

This module provides a way to compare variables and to re-direct end-users to a different area of the call-flow based on the value of a variable. Additional comparison conditions can be added/removed from the module by pressing the add and remove () buttons.

Depending on the value and variable in the comparison, the correct type should be used to avoid any unexpected results. The three types of comparison that are supported in this module are:

  • String (default)

  • Numeric

  • Boolean

This module is commonly used with end-user input, or when getting results from a webservice for branching into different parts of the call flow based on the result.

Comparisons

The following comparison operators can be selected in the drop down

  • Equals to ( = )

  • Greater than ( > )

  • Lesser than ( < )

  • Greater than or equals to ( ≥ )

  • Lesser than or equals to ( ≤ )

  • Not equals to ( ≠ )

It is recommended to only use the equals ( = ) and not equals to ( ≠ ) operators for string and boolean types.

Module Settings

There are 3 different types of comparisons that can be used in the module.

  • String (default)

  • Number

  • Boolean

Most of the variables generated by input modules in the Fuse application are by default string types, therefore it is important to set the correct type when doing comparisons.

Type

Notes

Example

String

The string compare type is used by default in the module. Only = or ≠ operators should be used for string types.

Number

When selected, Fuse will apply a javascript Number() function to both fields before making the comparison. Using the incorrect compare type for numbers can have unexpected results because of how Javascript behaves with certain comparison operators and types. For example, “9” > “100” as string types, while 9 < 100 as number types.

Boolean

True or False should be used for boolean comparisons. Only = or ≠ operators should be used for boolean types.

If a comparison condition is true, the call will be directed to the node to the side of that condition (). If none of the conditions are true, the call will go through the node at the bottom of the module () .

The currently selected comparison type will also show up on the module above the comparison drop down. For more information, please refer to the section under settings.

Note: For a simpler increment counter, the () can be used instead of the comparison as it has a built in increment logic for the counting variable.

This setting controls the logging function of a module. Enabling the 'Private' setting instructs the module to not record, report, or retain the information input to that module for reporting or any other purposes. When enabled any information entered into a module during a call will be lost immediately when the call terminates. The 'Private' setting is critical for businesses that need to maintain PCI-DSS or HIPAA compliance. The module icon, in the upper left-hand corner, becomes grayed-out when this setting is enabled. See more details .

Any text entered into the module are compared as-is and the module does not evaluate any Javascript before the comparison. Comparing for undefined or null values are not possible with this module as all input in the module will be converted to either of the 3 formats. Those conditions will have to be checked with the () module.

compare types
Counter
Evaluate JavaScript
here
Private
Compare Types