Skip to main content

Working with variables

Here are some guidelines for working with variables in Arria NLG Studio:

  • Use global variables when you need a variable to be accessible anywhere within a project workflow. You can create global variables in the Variables view. For more guidance, see the documentation.

  • Use specific, valid names for variables. Avoid names that include reserved words such as value, equals, and data. See the documentation for restrictions on the names of variables.

  • Give your variables meaningful names. The variable name should explain its content.

  • Obey programming language standards and don't use lowercase/uppercase characters inconsistently (e.g. userName, UserName, USER_NAME, m_userName, username, etc.).

    • Use mixedCase (also known as lowerCamelCase) for variables: studentName

    • Use upper case for constants: MAX_PARAMETER_COUNT = 100

    • Don't use the underscore character '_' anywhere, except in constants

    Tip

    Follow programming standards when naming variables.