Determine the Current Language in a Template
You can use the LANGUAGE instruction in a Computation variable to find out which language is currently being used by the template. This is useful only in multiple-language templates. (For more information on multiple-language templates, see the HotDocs Help.)
When HotDocs processes the LANGUAGE instruction in the computation, it returns a code (text value) representing the current language. The table below lists the possible languages and their codes:
To determine the current language in a template
- Create a Computation variable, or open an existing Computation variable for editing. The Computation Editor appears.
- Place the cursor at the point in the computation script where you want to return the current language.
- Type LANGUAGE, then click OK until you return to the template.