Actions

Translations

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

From LimeSurvey Manual

(Importing a new version from external source)
 
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")
(No difference)

Revision as of 15:25, 11 February 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.
 Hint: 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)