<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Survey123 Multiple conditional calculations  in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-multiple-conditional-calculations/m-p/843070#M21365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I write a calculation to default to one of the following? basically if the phone number option 1 is null then check&amp;nbsp;the second option and so on until one of the following displays a phone number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;${NEOFormPHONENUMBER}&lt;BR /&gt;${NEOFormMOBILENUMBER}&lt;BR /&gt;${NEOFormBUSINESSNUMBER}&lt;BR /&gt;${NEOFormEMERGENCYCONTACTNAME}&lt;BR /&gt;${NEOFormEMERGENCYNUMBER}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Apr 2019 14:29:59 GMT</pubDate>
    <dc:creator>JordanMiller4</dc:creator>
    <dc:date>2019-04-08T14:29:59Z</dc:date>
    <item>
      <title>Survey123 Multiple conditional calculations</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-multiple-conditional-calculations/m-p/843070#M21365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I write a calculation to default to one of the following? basically if the phone number option 1 is null then check&amp;nbsp;the second option and so on until one of the following displays a phone number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;${NEOFormPHONENUMBER}&lt;BR /&gt;${NEOFormMOBILENUMBER}&lt;BR /&gt;${NEOFormBUSINESSNUMBER}&lt;BR /&gt;${NEOFormEMERGENCYCONTACTNAME}&lt;BR /&gt;${NEOFormEMERGENCYNUMBER}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 14:29:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-multiple-conditional-calculations/m-p/843070#M21365</guid>
      <dc:creator>JordanMiller4</dc:creator>
      <dc:date>2019-04-08T14:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Multiple conditional calculations</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-multiple-conditional-calculations/m-p/843071#M21366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check for nulls using the string-length function or by checking a value against an empty string. If you nest some "if" statements, the calculation will return once a condition is met.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;if(string-length(${NEOFormPHONENUMBER}) != 0, ${NEOFormPHONENUMBER}, if(string-length(${NEOFormMOBILENUMBER}) != 0, ${NEOFormMOBILENUMBER}, if(string-length(${NEOFormBUSINESSNUMBER}) != 0, ${NEOFormBUSINESSNUMBER}, if(string-length(${NEOFormEMERGENCYNUMBER}) != 0, ${NEOFormEMERGENCYNUMBER}, "NONE"))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco, monospace;"&gt;if(${NEOFormPHONENUMBER} != "", ${NEOFormPHONENUMBER}, if(${NEOFormMOBILENUMBER} != "", ${NEOFormMOBILENUMBER}, if(${NEOFormBUSINESSNUMBER} != "", ${NEOFormBUSINESSNUMBER}, if(${NEOFormEMERGENCYNUMBER} != "", ${NEOFormEMERGENCYNUMBER}, "NONE"))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Documentation: &lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm"&gt;Formulas—Survey123 for ArcGIS&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 00:05:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-multiple-conditional-calculations/m-p/843071#M21366</guid>
      <dc:creator>StephenM</dc:creator>
      <dc:date>2019-04-09T00:05:03Z</dc:date>
    </item>
  </channel>
</rss>

