logo SmartSurvey / Scripting Docs
Back to Docs
Built-in Function
languageof[] System

Returns the current survey language code. Use to show language-specific content or route respondents to different question sets based on their language preference.

Returns: Integer — the language code (1 = default/primary)
Examples
expressions
languageof[]=1     -- survey is in the primary language
languageof[]=2     -- survey is in the second language (e.g. Bengali)
Language codes are defined in the project configuration. Code 1 is typically the primary language.
Related