<?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 Sorting choice list with integers in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/sorting-choice-list-with-integers/m-p/1028925#M32639</link>
    <description>&lt;P&gt;Hello all!&lt;/P&gt;&lt;P&gt;I have a choice list with integers and want to do a calculation based on the given number. My list looks like this. 50, 55, 60, 65 … 95, 100, 105 etc.&lt;/P&gt;&lt;P&gt;If the user answers e.g. 70, I want to catch all the choices from 70 and above. So I tried: if(${integerquestion} &amp;gt;= '70', ‘1’, ‘0’).&lt;/P&gt;&lt;P&gt;This works well between 70 to 95 but it doesn’t give me anything above 100. One solution is to use:&lt;BR /&gt;if(${integerquestion} = '70' or ${integerquestion} = '75' … ${integerquestion} = '120'&lt;/P&gt;&lt;P&gt;This is very ineffective and surely there is better solution out there. Does anyone have a solution for this?&lt;/P&gt;</description>
    <pubDate>Sun, 21 Feb 2021 11:25:28 GMT</pubDate>
    <dc:creator>StefanHaglund1</dc:creator>
    <dc:date>2021-02-21T11:25:28Z</dc:date>
    <item>
      <title>Sorting choice list with integers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sorting-choice-list-with-integers/m-p/1028925#M32639</link>
      <description>&lt;P&gt;Hello all!&lt;/P&gt;&lt;P&gt;I have a choice list with integers and want to do a calculation based on the given number. My list looks like this. 50, 55, 60, 65 … 95, 100, 105 etc.&lt;/P&gt;&lt;P&gt;If the user answers e.g. 70, I want to catch all the choices from 70 and above. So I tried: if(${integerquestion} &amp;gt;= '70', ‘1’, ‘0’).&lt;/P&gt;&lt;P&gt;This works well between 70 to 95 but it doesn’t give me anything above 100. One solution is to use:&lt;BR /&gt;if(${integerquestion} = '70' or ${integerquestion} = '75' … ${integerquestion} = '120'&lt;/P&gt;&lt;P&gt;This is very ineffective and surely there is better solution out there. Does anyone have a solution for this?&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 11:25:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sorting-choice-list-with-integers/m-p/1028925#M32639</guid>
      <dc:creator>StefanHaglund1</dc:creator>
      <dc:date>2021-02-21T11:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting choice list with integers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sorting-choice-list-with-integers/m-p/1028929#M32640</link>
      <description>&lt;P&gt;I don't use survey123 so this may not be applicable, but if the When function is available it may be easier to implement&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/function-reference/logical_functions/#when" target="_blank"&gt;Logical Functions | ArcGIS for Developers&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 14:03:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sorting-choice-list-with-integers/m-p/1028929#M32640</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-02-21T14:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting choice list with integers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sorting-choice-list-with-integers/m-p/1028935#M32641</link>
      <description>&lt;P&gt;If its an integer why is it in quotes.&amp;nbsp; Seems like it might be sorting based on an text field where 100 comes before 50.&amp;nbsp; That's why text fields next to be cast as a numeric field before operating on it or using another field to calculate it to be a numeric field.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 15:20:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sorting-choice-list-with-integers/m-p/1028935#M32641</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2021-02-21T15:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting choice list with integers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sorting-choice-list-with-integers/m-p/1029185#M32652</link>
      <description>&lt;P&gt;2 ways&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(int(${integerquestion}) &amp;gt;= 70, 1, 0)&lt;/P&gt;&lt;P&gt;or set the bind type field to int.&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 16:52:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sorting-choice-list-with-integers/m-p/1029185#M32652</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-02-22T16:52:44Z</dc:date>
    </item>
  </channel>
</rss>

