====== Tutorial 4 - Creating a custom index list ====== ===== 2/5 ===== In this lesson you will create a new index list with indices for different types of plants. You will also create a new index list which maps to the //Plants// index list. This index list will be used for a parameter which has the same value for plants of a common type.
  1. Open the file from the previous exercise.

  2. Open the [[Index_lists_window|Index lists window]].

  3. Right-click the window and select **New | Index list** from the pop-up menu. An [[Index_list|Index list]] named “IndexList” will appear in the list.

  4. Right-click the new [[Index_list|Index list]] and select **Edit** from the pop-up menu.

  5. In the **Properties** tab, change the name from “IndexList” to “Plants”.

  6. Select the **Values** tab. Click the **Add** button so that the table shows four indices. Click an index in the table to give it a new name.

  7. Name the indices:

    1. Pine
    2. Fir
    3. Wheat
    4. Oats

    \\

    {{:tutorial_4_2_1.png|Screenshot}}

  8. Click **Ok** to close the window.

\\ **Creating a mapped index list**
  1. Right-click the window and select **New | Index list** from the pop-up menu.

  2. Right-click the new [[Index_list|Index list]] and select **Edit** from the pop-up menu.

  3. In the **Properties** tab, change the name from “IndexList1” to “Plant types”.

  4. Select the **Values** tab. Add two indices to the index list and name them:

  5. Select the **Mapping** tab. From the **Mapped index list** drop down list, choose “Plants”.

  6. Map the indices according to the table below:

    \\

    ^From ^To ^ |Pine |Tree | |Fir |Tree | |Wheat|Grain| |Oats |Grain|

    \\ \\

    {{:tutorial_4_2_3.png|Screenshot}}\\

  7. Click **Ok** to close the window.

{{:tutorial_4_2_2.png|Screenshot}} \\ **Next** * [[Tutorial_4-Creating_expressions_and_parameters|Creating expressions and parameters (3/5)]] **Previous** * [[Tutorial_4-Using_index_lists_(Advanced)|Using index lists (Advanced) (1/5)]] **References** * [[Tutorials|Back to Tutorials]] * [[start|Home]]