modules:compare-variable

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

modules:compare-variable [2017/02/21 18:48]
admin created
modules:compare-variable [2018/08/28 19:16]
admin
Line 1: Line 1:
 ====== Compare Variable ====== ====== Compare Variable ======
  
-{{:branch_on_var.png?​nolink|}} +<WRAP group> 
 +<WRAP COLUMN>{{INLINETOC width18 4-5|Compare Module}}</​WRAP>​ 
 +<WRAP COLUMN>​{{:​modules:module-compare.png?nolink |}}</​WRAP>​ 
 +</​WRAP>​
 ---- ----
  
 ===Function=== ===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 that input+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 ( {{:​add-remove_action_icons.svg?​nolink&​46x16|}} ) buttons
  
-This module is commonly used with end-user input or when getting results from webservice.+If comparison condition is true, the call will be directed to the node to the side of that condition ( {{:​node_callflow_right.svg?​nolink&​20x20|}} ). 
 +\\ If none of the conditions are true, the call will go through the node at the bottom of the module ( {{:​node_callflow_bottom.svg?​nolink&​20x20|}} ) 
  
-Set this module to ‘Private’ to maintain PCI compliance. 
  
-//**Note**: Compare Variable differs from [[modules:​counter|Counter]] because this module compares one variable or string at a time. The value of the variable in Compare Variable does not change while the variable for Counter changes every time the call-flow passes through that module.//+\\ Depending on the value and variable in the comparison, ​the correct type should be used to avoid any unexpected results. For more information,​ please refer to the [[#compare-types|compare types]] section under settings.
  
  
 +
 +\\ 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.
 +
 +//**Note**: For a simpler increment counter, the [[modules:​counter|Counter]] ( {{:​branch_on_counter.svg?​nolink&​16x16|}} ) can be used instead of the comparison as it has a built in increment logic for the counting variable.//
 +
 +----
 ===Comparisons=== ===Comparisons===
-User may set the comparison ​terms +The following ​comparison ​operators can be selected in the drop down 
-  * Equal +  * Equals to ( = ) 
-  * Greater than +  * Greater than ( > ) 
-  * Lesser than +  * Lesser than ( < ) 
-  * Greater than or equal to +  * Greater than or equals ​to ( ≥ ) 
-  * Lesser than or equal to +  * Lesser than or equals ​to ( ≤ ) 
-  * Not equal to+  * Not equals ​to ( ≠ )
  
 +It is recommended to only use the equals ( = ) and not equals to ( ≠ ) operators for //string// and //boolean// types.
 +
 +----
 ===Module Settings=== ===Module Settings===
-  * Private+{{:​modules:​settingsmod-compare.png?​nolink|}}  
 + 
 +{{page>​modules:​module-settings#​private&​link&​noeditbutton&​nofooter&​firstseconly&​noreadmore}} 
 + 
 +---- 
 +{{page>​modules:​module-settings#​compare-types&​link&​noeditbutton&​nofooter&​firstseconly&​noreadmore}} 
modules/compare-variable.txt · Last modified: 2018/08/28 19:16 by admin