Actions

Translations

ExpressionScript How-tos/10/en: Difference between revisions

From LimeSurvey Manual

(Importing a new version from external source)
(Importing a new version from external source)
 
Line 8: Line 8:
#Tailored paragraph: you can completely customize a report based upon prior values
#Tailored paragraph: you can completely customize a report based upon prior values
#EM processes within strings: shows that it can do substitutions within strings. This example generates a tailored image name.
#EM processes within strings: shows that it can do substitutions within strings. This example generates a tailored image name.
#EM doesn't process curly braces like these: shows that if the curly braces are escaped, or there is a white space between the expression and the curly braces, EM ignores the expression.
#EM doesn't process curly braces like these: shows that if the curly braces are escaped, or there is a white space between the expression and the curly braces, ES ignores the expression.

Latest revision as of 16:50, 19 May 2020

Message definition (ExpressionScript How-tos)
You may find below examples of proper syntax:
#Values: shows that known variables are color coded according to whether are set on the current page. Old-style INSERTANS:xxxx gets its own color-coding style
#Question Attributes: shows that dot notation can access some properties of questions
#Math: shows that basic and complex calculations are supported
#TextProcessing: shows some of the available text-processing functions
#Dates: shows two of the available date-related functions
#Conditional: shows the usage of the if() function. The choices can be nested.
#Tailored paragraph: you can completely customize a report based upon prior values
#EM processes within strings: shows that it can do substitutions within strings. This example generates a tailored image name.
#EM doesn't process curly braces like these: shows that if the curly braces are escaped, or there is a white space between the expression and the curly braces, ES ignores the expression.

You may find below examples of proper syntax:

  1. Values: shows that known variables are color coded according to whether are set on the current page. Old-style INSERTANS:xxxx gets its own color-coding style
  2. Question Attributes: shows that dot notation can access some properties of questions
  3. Math: shows that basic and complex calculations are supported
  4. TextProcessing: shows some of the available text-processing functions
  5. Dates: shows two of the available date-related functions
  6. Conditional: shows the usage of the if() function. The choices can be nested.
  7. Tailored paragraph: you can completely customize a report based upon prior values
  8. EM processes within strings: shows that it can do substitutions within strings. This example generates a tailored image name.
  9. EM doesn't process curly braces like these: shows that if the curly braces are escaped, or there is a white space between the expression and the curly braces, ES ignores the expression.