<?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 How to construct a if statement to perform a two different calculation depending on the choice of the previous question in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-construct-a-if-statement-to-perform-a-two/m-p/1083579#M36166</link>
    <description>&lt;P&gt;Hello guys I am trying to calculate the volume of a grain bin depending whether it is a top cone or not. I have a select one question in the survey that provides the information. I am using the following if statement in the calculation column:&amp;nbsp;if(selected(${bin_top},'Top cone'),${circumference_in}*2,${circumference_in}*3)&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is not working, anyone has any recommendations?&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jul 2021 16:24:47 GMT</pubDate>
    <dc:creator>AdeshOswal</dc:creator>
    <dc:date>2021-07-28T16:24:47Z</dc:date>
    <item>
      <title>How to construct a if statement to perform a two different calculation depending on the choice of the previous question</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-construct-a-if-statement-to-perform-a-two/m-p/1083579#M36166</link>
      <description>&lt;P&gt;Hello guys I am trying to calculate the volume of a grain bin depending whether it is a top cone or not. I have a select one question in the survey that provides the information. I am using the following if statement in the calculation column:&amp;nbsp;if(selected(${bin_top},'Top cone'),${circumference_in}*2,${circumference_in}*3)&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is not working, anyone has any recommendations?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 16:24:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-construct-a-if-statement-to-perform-a-two/m-p/1083579#M36166</guid>
      <dc:creator>AdeshOswal</dc:creator>
      <dc:date>2021-07-28T16:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to construct a if statement to perform a two different calculation depending on the choice of the previous question</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-construct-a-if-statement-to-perform-a-two/m-p/1083605#M36168</link>
      <description>&lt;P&gt;Not much to go on here. if statement looks ok.&amp;nbsp; What is not working?&amp;nbsp; Wrong number, nothing shown?&lt;/P&gt;&lt;P&gt;My guess would be that you are using the label value and not the name value from bin_top - is it maybe Top cone in the label and Topcone in the name for the list?&lt;/P&gt;&lt;P&gt;Other guess is add some spaces&amp;nbsp;${circumference_in} * 2&lt;/P&gt;&lt;P&gt;Just a guess maybe post the form.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 17:03:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-construct-a-if-statement-to-perform-a-two/m-p/1083605#M36168</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-07-28T17:03:32Z</dc:date>
    </item>
  </channel>
</rss>

