{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":38440,"path":"platform-administration/c_DetermValsAssocWChoicesScripting.md","title":"Values to associate with choice labels for scripting","bundle":null,"doc_type":null,"release":"australia","body":"\n# Values to associate with choice labels for scripting\n\nWhen you write a script that references a choice list, you need to know the value that is associated with each choice.\n\nFor example, to check whether the incident\\_state field is active, you could not use the condition `current.incident_state == \"active\"` because the value associated with the choice labeled **Active** is the integer **2**. Instead, you would use the condition `current.incident_state == 2`.\n\nThe **Type** field on the choice list dictionary entry determines the data type of the values.\n\nTo determine the value associated with a choice, right-click the field label and select **Show Choice List**, and then locate the choice for which you need to know the value.\n\nThe **-- None --** option may not have a sys\\_choice record associated with it. A choice list field set to **-- None --** evaluates to these values, depending on the script context as listed below.\n\n-   For client-side scripts,such as client scripts: \"\" \\(empty string\\)\n-   For server-side scripts, such as business rules: \"0\" \\(string of the number zero\\)\n\n**Related topics**  \n\n\n[System dictionary](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/table-administration-and-data-management/c_SystemDictionary.md)\n\n"}}