KnowledgeBaseQuestManager Website
Language
 
Home>Knowledge Base>General>SmartTags>What are EXPRESSIONS?
Information
Article ID512
Created On6/30/2009
Modified6/30/2009
Share With Others

What are EXPRESSIONS?

 Back

Expressions are functions that allow the running of logical, mathematical and time operations through entry and exit parameters. These can be nested in order to obtain a single result. A s is with SmartTags, the expressions can be used in different situations, as was shown with the question texts, within containers, information, filters or expressions. Usually an icon will appear next to the text box that supports the usage of expressions.
Expressions accept SmartTags, numbers, literals and other expressions, as entry parameters.


Here is an example of employing a mathematical sum expression in the question Q5 question text:

 

 


Q3
- Select up to three favorite colors.

 Blue (value = 10)
 Brown (value = 20)
 Black (value = 30)
 Green (value = 40)
 Yellow (value = 50)
 White (value = 60)

Q4 - Select up to three of your favorite car brands.

 Fiat (value = 100)
 Mercedes (value = 200)
 Audi (value = 300)
 GM (value = 400)
 Renault (value = 500)
 Honda (value = 600)

Q5 - Considering that the sum of the selected values in the last two questions was <[qm_sum(<#?Q3#>;<#?Q4#>)]>points,

correlate the brands below with your favorite colors:

 
  Green Blue Black
Audi        
Mercedes      
Honda      

 

The expression <[qm_sum(<#?Q3#>;<#?Q4#>)]> that performs the sum operation between two terms will receive two SmartTags as parameters that retrieve the sum of the selected values in the two previous questions, that is, 80 + 1100= 1180

Q5 - Considering that the sum of the selected values in the last two questions was 1180points,

correlate the brands below with your favorite colors:

 
  Green Blue Black
Audi        
Mercedes      
Honda