<h2>Functions, data types, and operators</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2025" /><meta name="DC.rights.owner" content="(C) Copyright 2025" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="reference" /><meta name="DC.title" content="Functions, data types, and operators" /><meta name="abstract" content="The Decision component supports certain functions and operators described in the topic. Use this topic as a reference." /><meta name="description" content="The Decision component supports certain functions and operators described in the topic. Use this topic as a reference." /><meta name="DC.relation" scheme="URI" content="../../../product/rpa-studio/concept/conditions-components.html" /><meta name="DC.relation" scheme="URI" content="../../../build/create-integrations-apps/concept/create-integrations-applications.html" /><meta name="DC.relation" scheme="URI" content="../../../product/rpa-core/concept/rpa-main-landing-page.html" /><meta name="DC.relation" scheme="URI" content="../../../product/rpa-studio/concept/rpa-studio-landing-page.html" /><meta name="DC.relation" scheme="URI" content="../../../product/rpa-studio/concept/rpa-studio-automation-components.html" /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-08-03" /><meta name="DC.date.modified" content="2023-08-03" /><meta name="page-type" content="automation-engine" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="conditions-decision-func-opr" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Functions, data types, and operators</title></head><body id="conditions-decision-func-opr"> <div class="breadcrumb"><a class="link" href="../../../build/create-integrations-apps/concept/create-integrations-applications.html" title="Increase the impact of your cross‑enterprise workflows by connecting any application or data. Connect people, processes, and apps to enhance the value of your ServiceNow investment.">Creating integrations with applications</a> > <a class="link" href="../../../product/rpa-core/concept/rpa-main-landing-page.html" title="Use the ServiceNow Robotic Process Automation (RPA) Hub to enable end-to-end automation for your organization. With a combination of UI interactions and element-based automations that interact between the various business applications, you can emulate user actions and eliminate mundane and repetitive human activities.">Robotic Process Automation (RPA) Hub</a> > <a class="link" href="../../../product/rpa-studio/concept/rpa-studio-landing-page.html" title="Use the ServiceNow Robotic Process Automation (RPA) Desktop Design Studio, which is a low-code Integrated Development Environment (IDE) where you can design or configure automation workflows by dragging and dropping components to the design surface. RPA Desktop Design Studio is a Windows native application.">RPA Desktop Design Studio</a> > <a class="link" href="../../../product/rpa-studio/concept/rpa-studio-automation-components.html" title="Design automations using various components in RPA Desktop Design Studio.">Automation components</a> > </div> <h1 class="title topictitle1" id="ariaid-title1">Functions, data types, and operators</h1> <div class="body refbody"><p class="shortdesc">The Decision component supports certain functions and operators described in the topic. Use this topic as a reference.</p> <div class="section" id="conditions-decision-func-opr__section_bzp_jcl_ttb"><h2 class="title sectiontitle">Supported functions and operators</h2> <div class="p"> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="conditions-decision-func-opr__table_vhj_ncl_ttb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 1. </span>Supported functions and operators</span></caption><colgroup><col style="width:33.33333333333333%" /><col style="width:33.33333333333333%" /><col style="width:33.33333333333333%" /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d589062e61">Type</th><th class="entry cellrowborder" style="vertical-align:top;" id="d589062e64">Example</th><th class="entry cellrowborder" style="vertical-align:top;" id="d589062e67">Evaluated as</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e61 ">Values</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e64 "><div class="p"><ul class="ul" id="conditions-decision-func-opr__ul_zms_kdl_ttb"><li class="li">Integer</li><li class="li">Floating point number</li><li class="li">Date and time</li><li class="li">Boolean</li><li class="li">String</li><li class="li">Function</li><li class="li">Parameter</li></ul> </div> </td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e67 ">Not applicable</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e61 ">Integers</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e64 ">Represented using numbers. Example, 443, 124, and 665.</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e67 ">Int32</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e61 ">Floating point numbers</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e64 ">221.12, 43.76, and 5.9</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e67 ">Decimal</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e61 ">Scientific notation</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e64 "><div class="p">You can use the e to define the power of 10 (10^).<ul class="ul" id="conditions-decision-func-opr__ul_mnm_rwm_ttb"><li class="li">1.22e1</li><li class="li">1e2</li><li class="li">1e+2</li><li class="li">1e-2</li><li class="li">.1e-2</li><li class="li">1e10</li></ul> </div> </td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e67 ">Double</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e61 ">Dates and Times</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e64 "><p class="p">Must be enclosed between <code class="ph codeph">sharps</code>.</p> <p class="p">#2008/01/31# // for en-US culture</p> </td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e67 ">DateTime</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e61 ">Boolean</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e64 ">True or False</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e67 ">Boolean</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e61 ">Strings</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e64 "><p class="p">Any character between single quotes ' is evaluated as String.</p> </td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e67 ">'ServiceNow'</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e61 ">Parameters</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e64 "><p class="p">A parameter as a name, and can be optionally contained inside brackets.</p> <p class="p">2 + x, 2 + [x]</p> </td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e67 "> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e61 ">Function</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e64 "><p class="p">A function is made of a name followed by braces, containing optionally any value as arguments. Abs(1), doSomehting(1, 'dummy')</p> </td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e67 "> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e61 ">Operators</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e64 ">Expressions can be combined using operators. Each operator as a precedence priority. Here is the list of those expression's priority.<ol class="ol" id="conditions-decision-func-opr__ol_tc3_r3d_c5b"><li class="li">primary</li><li class="li">unary</li><li class="li">power</li><li class="li">multiplicative</li><li class="li">additive</li><li class="li">relational</li><li class="li">logical</li></ol> </td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e67 "> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e61 ">Logical</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e64 ">These operators can do some logical comparison between other expressions:<ul class="ul" id="conditions-decision-func-opr__ul_ard_x3d_c5b"><li class="li">or</li><li class="li">||</li><li class="li">&&</li><li class="li">true or false</li></ul> <p class="p">The and operator has a higher priority than the or, thus in the example above, false and true are evaluated first.</p> </td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e67 "> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e61 ">Relational</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e64 ">Relational operators are used to compare values. These operators always result in a boolean value.<ul class="ul" id="conditions-decision-func-opr__ul_dwh_djd_c5b"><li class="li">=, ==, !=, <></li><li class="li"><, <=, >, >=</li><li class="li">1 < 2</li></ul> </td><td class="entry cellrowborder" style="vertical-align:top;" headers="d589062e67 "> </td></tr></tbody></table> </div> </div> </div> </div> <div class="related-links"> <div class="familylinks"> <div class="parentlink"><strong>Parent Topic:</strong> <a class="link" href="../../../product/rpa-studio/concept/conditions-components.html" title="The Conditions is a group of components that you can use to automate decision making. These decisions are based on the value, input, or data matches with conditions or multiple values.">Conditions</a></div> </div> </div></body></html></div>