Skip to main content

NIM

Create, edit, or remove a variable

For more information, see Variables.

Create a variable
  1. Go to Configuration > Variables.

  2. Click Add.

  3. Enter a Name.

    For example, DateTimeMonthStart.

  4. Enter a Category.

    For example, date-time.

  5. For the Type, select either Constant or JavaScript.

    1. If you select Constant, enter a string for the Value.

    2. If you select JavaScript, enter code in the JavaScript Code field that returns a string.

      For example:

      const now=new Date(Date.now());
      now.setDate(0);
      now.setHours(0,0,0,0);
      return now.toISOString();
    3. Optional: Click Test to test your JavaScript code.

  6. Optional: Enter a Description.

    For example, The start date-time of the current month.

    2021-07-13_12-51-09.png
  7. Click Save.

  1. Go to Configuration > Variables.

  2. For each field of the variable you want to modify, click its field and enter a new value.

  3. If the variable is a JavaScript variable, modify its code in the JavaScript Code pane.

    2021-07-19_14-44-51.png
  4. Click Save.

  1. Go to Configuration > Variables.

  2. Click Remove Variable for the relevant variable.

    2021-07-19_14-37-25.png
  3. Click Yes.