---
sourceDocument: Xanadu ServiceNow AI Platform Administration
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/platform-administration

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu ServiceNow AI Platform Administration

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Values to associate with choice labels for scripting

# Values to associate with choice labels for scripting {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

When you write a script that references a choice list, you need to know the value that
is associated with each choice.

For 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`.

The Type field on the choice list dictionary entry determines the data
type of the values.

To 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.  
Figure 1. Show choices list values  
The -- 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.

* For client-side scripts,such as client scripts: "" (empty string)
* For server-side scripts, such as business rules: "0" (string of the number zero)
{#c_DetermValsAssocWChoicesScripting__ul_nzl_kj5_cq}
**Related concepts**   

* [System dictionary](https://servicenow-prod.fluidtopics.net/4a2v7eTS8qFMt~3PiE0b7w "View a list of all tables in columns in your instance from the system dictionary.")

