<?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 Re: Conditional statement from select_one value in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-statement-from-select-one-value/m-p/814089#M14128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks James, using pulldata() was a better solution for this.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Apr 2018 19:58:39 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2018-04-09T19:58:39Z</dc:date>
    <item>
      <title>Conditional statement from select_one value</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-statement-from-select-one-value/m-p/814087#M14126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a select_one question with 6 values for bolt sizes, I want to populate a note after that question with the correct torque value from a table based on the bolt size. I assume that I need an if statement in the calculation filed but I can't figure out the formatting of the statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" height="171" style="border: 1px solid #c6c6c6;" width="171"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef; height: 25px;"&gt;&lt;TH style="width: 70.8px; height: 25px;"&gt;Bolt Size&lt;/TH&gt;&lt;TH style="width: 77.2px; height: 25px;"&gt;Torque&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="width: 70.8px; height: 25px;"&gt;&lt;P&gt;.5&lt;/P&gt;&lt;/TD&gt;&lt;TD style="width: 77.2px; height: 25px;"&gt;17&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="width: 70.8px; height: 25px;"&gt;.625&lt;/TD&gt;&lt;TD style="width: 77.2px; height: 25px;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="width: 70.8px; height: 25px;"&gt;.75&lt;/TD&gt;&lt;TD style="width: 77.2px; height: 25px;"&gt;75&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="width: 70.8px; height: 25px;"&gt;.875&lt;/TD&gt;&lt;TD style="width: 77.2px; height: 25px;"&gt;83&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="width: 70.8px; height: 25px;"&gt;1&lt;/TD&gt;&lt;TD style="width: 77.2px; height: 25px;"&gt;125&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="width: 70.8px; height: 25px;"&gt;1.125&lt;/TD&gt;&lt;TD style="width: 77.2px; height: 25px;"&gt;212&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 70.8px;"&gt;&lt;/TD&gt;&lt;TD style="width: 77.2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 18:36:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-statement-from-select-one-value/m-p/814087#M14126</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-04-09T18:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional statement from select_one value</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-statement-from-select-one-value/m-p/814088#M14127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a few&amp;nbsp;of things at issue. &amp;nbsp;The first is that the selected() function requires 2 parameters - the question to check and teh value to check (it doesn't need the = sign in the formula). &amp;nbsp;The second is that, based on your parenthesis, the if statement had only 1 parameter, not 3. &amp;nbsp;Finally, the value you are checking is specified as '.5'; you should check for '0.5' (these aren't the same when treating the values as text, which is how select_one questions are stored).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(selected(${BoltSize}, '0.5'),'17', 'other')&amp;nbsp;&lt;/P&gt;&lt;P&gt;should get you started - in the place of 'other', you would proceed to have a nested series of if() statements to select the proper value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might be a little simpler to treat this as a data table and use pulldata() to look up the values instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 18:59:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-statement-from-select-one-value/m-p/814088#M14127</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-04-09T18:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional statement from select_one value</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-statement-from-select-one-value/m-p/814089#M14128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks James, using pulldata() was a better solution for this.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 19:58:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-statement-from-select-one-value/m-p/814089#M14128</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-04-09T19:58:39Z</dc:date>
    </item>
  </channel>
</rss>

