Language
Description |
Checks which language is used for the current MDM session (that is, which language has been selected when connecting to the Data Manager), and returns the value of the expression corresponding to that language |
Syntax |
IF (LANGUAGE=lan1 THEN language_specific_expression1 ELSE IF (LANGUAGE=lan2 THEN language_specific_expression2 ELSE IF (LANGUAGE=lan3 THEN language_specific_expression3 ELSE otherwise_expression))) ● lan1 is repository language 1 ● lan2 is repository language 2 ● lan3 is repository language 3 |
Example |
IF(LANGUAGE=English [US] THEN FALSE ELSE TRUE) Logged language is English [US] ® FALSE Logged language is German [DE] ® TRUE IF(LANGUAGE=German [DE], “German”, “English”) Logged language is English [US] ® “English” Logged language is German [DE] ® “German” |
Note |
You cannot manually type this function, you have to select it from the functions, otherwise MDM will return a syntax error message. Calculated fields will loop through all languages in the repository and evaluate the expression for each language. |