<?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: If statement without else action in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-without-else-action/m-p/1219541#M45205</link>
    <description>&lt;P&gt;Thank you for the reply, this is helpful.&lt;/P&gt;&lt;P&gt;I am using the edit mode in this case and often there will already be a value of "Complete" in the "CC8001W_Complete" field. In such cases, I do not want to modify that data, I would like it left as is. I think what you are suggesting with using ${current_data}) is close to what I need, however I can't get it to work. Is ${current_data}) an actual string I can input? Or by current_data are you referring to another specific field?&lt;/P&gt;</description>
    <pubDate>Thu, 06 Oct 2022 19:01:53 GMT</pubDate>
    <dc:creator>Hammers211</dc:creator>
    <dc:date>2022-10-06T19:01:53Z</dc:date>
    <item>
      <title>If statement without else action</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-without-else-action/m-p/1219066#M45176</link>
      <description>&lt;P&gt;Is it possible to have an if statement that takes no action when returned false?&lt;/P&gt;&lt;P&gt;Example using a statement I am using currently:&lt;/P&gt;&lt;P&gt;if(${Course_Completed}= 'CC8001W' , 'Complete', 'Incomplete')&lt;/P&gt;&lt;P&gt;I would like to remove the 'Incomplete' part, like this:&lt;/P&gt;&lt;P&gt;if(${Course_Completed}= 'CC8001W' , 'Complete')&lt;/P&gt;&lt;P&gt;So that the only changes to the data will be to input Complete.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or in other words, if current data exists, do not change it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 18:16:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-without-else-action/m-p/1219066#M45176</guid>
      <dc:creator>Hammers211</dc:creator>
      <dc:date>2022-10-05T18:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: If statement without else action</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-without-else-action/m-p/1219076#M45178</link>
      <description>&lt;P&gt;What field are you using to populate this? You &lt;EM&gt;must&lt;/EM&gt; have a parameter for when the condition is false, but that parameter could be an expression that grabs data from something else.&lt;/P&gt;&lt;P&gt;Trying to calculate a field based on data in the same field can easily get into a circular reference situation, which S123 will more than likely reject.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 18:50:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-without-else-action/m-p/1219076#M45178</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-10-05T18:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: If statement without else action</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-without-else-action/m-p/1219089#M45179</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;You &lt;EM&gt;must&lt;/EM&gt; have a parameter for when the condition is false, but that parameter could be an expression that grabs data from something else.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Is it possible to have that expression grab the data from the current field?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 19:31:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-without-else-action/m-p/1219089#M45179</guid>
      <dc:creator>Hammers211</dc:creator>
      <dc:date>2022-10-05T19:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: If statement without else action</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-without-else-action/m-p/1219091#M45180</link>
      <description>&lt;P&gt;I mean, go ahead and try it. I think it will throw an error, though.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 19:38:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-without-else-action/m-p/1219091#M45180</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-10-05T19:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: If statement without else action</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-without-else-action/m-p/1219095#M45181</link>
      <description>&lt;P&gt;Would you mind helping me put together the expression? I don't quite have the skills for that yet.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 19:52:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-without-else-action/m-p/1219095#M45181</guid>
      <dc:creator>Hammers211</dc:creator>
      <dc:date>2022-10-05T19:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: If statement without else action</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-without-else-action/m-p/1219178#M45186</link>
      <description>&lt;P&gt;I'm not entirely clear what you want to do.&lt;/P&gt;&lt;P&gt;If you literally just want to return an empty value directly, you can simply use the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(${Course_Completed}= 'CC8001W' , 'Complete','')&lt;/P&gt;&lt;P&gt;If you want to maintain current data from another field unless the completion status is a certain value, then you need to use that field as an option in the if statement:&lt;/P&gt;&lt;P&gt;if(${Course_Completed}= 'CC8001W' , 'Complete',${current_data})&lt;/P&gt;&lt;P&gt;If you could explain what you are actually trying to achieve and why, it would be easier to work out the solution.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LaurenceTait_0-1665012906364.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/52936i7CBA2536C9F6C56A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LaurenceTait_0-1665012906364.png" alt="LaurenceTait_0-1665012906364.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LaurenceTait_1-1665012968197.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/52938i916722D11CBD4E62/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LaurenceTait_1-1665012968197.png" alt="LaurenceTait_1-1665012968197.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 23:36:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-without-else-action/m-p/1219178#M45186</guid>
      <dc:creator>LaurenceTait</dc:creator>
      <dc:date>2022-10-05T23:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: If statement without else action</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-without-else-action/m-p/1219541#M45205</link>
      <description>&lt;P&gt;Thank you for the reply, this is helpful.&lt;/P&gt;&lt;P&gt;I am using the edit mode in this case and often there will already be a value of "Complete" in the "CC8001W_Complete" field. In such cases, I do not want to modify that data, I would like it left as is. I think what you are suggesting with using ${current_data}) is close to what I need, however I can't get it to work. Is ${current_data}) an actual string I can input? Or by current_data are you referring to another specific field?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 19:01:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-statement-without-else-action/m-p/1219541#M45205</guid>
      <dc:creator>Hammers211</dc:creator>
      <dc:date>2022-10-06T19:01:53Z</dc:date>
    </item>
  </channel>
</rss>

