Actions

Translations

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

From LimeSurvey Manual

m (FuzzyBot moved page Translations:Expression Manager how-tos/10/en to Translations:ExpressionScript How-tos/10/en without leaving a redirect: Part of translatable page "Expression Manager how-tos")
(Importing a new version from external source)
Line 1: Line 1:
{{Hint|Text=To be used in javascript, url etc .... a variable must be static in the page. Then the expression must be contain only variable in other page (Green variable)}}
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, EM ignores the expression.

Revision as of 10:15, 3 March 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, EM ignores the expression.