<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Expression and Condition Examples</title><link>https://communities.bentley.com/products/geotechnical1/w/openground-wiki/60213/expression-and-condition-examples</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Expression and Condition Examples</title><link>https://communities.bentley.com/products/geotechnical1/w/openground-wiki/60213/expression-and-condition-examples</link><pubDate>Tue, 31 May 2022 11:30:00 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:17e2aaf1-9083-43a2-8596-83d2e3757026</guid><dc:creator>Stephen Evason</dc:creator><comments>https://communities.bentley.com/products/geotechnical1/w/openground-wiki/60213/expression-and-condition-examples#comments</comments><description>Current Revision posted to OpenGround Wiki by Stephen Evason on 5/31/2022 11:30:00 AM&lt;br /&gt;
&lt;p class="p"&gt;The following expression queries the Depth Related Exploratory Hole Information table and queries whether the current location type is Cable Percussion, if it is, it will return CP, if it isn&amp;rsquo;t, it will then query if the location type is Rotary Core, if it is, it will return RC, else it will return other.&lt;/p&gt;
&lt;div class="p"&gt;
&lt;pre class="pre codeblock"&gt;if([DepthRelatedExploratoryInformation.Type]=&amp;#39;CP&amp;#39;,&amp;#39;CP&amp;#39;,if([DepthRelatedEx-ploratoryInformation.Type]=&amp;#39;RC&amp;#39;,&amp;#39;RC&amp;#39;,&amp;#39;Other&amp;#39;))&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="p"&gt;
&lt;div class="fig fignone" id="GUID-FF840EBA-79E1-4D09-9F4F-B5D4EDA19DC3__FIG_9CD412CDC0DC48409577EB68E2B0A96B"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-06-06/pastedimage1653996629467v1.jpeg" alt=" " /&gt;&lt;span class="figdesc"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p class="p"&gt;The following expression is slightly more complicated as it queries the Field Geological Descriptions table and queries whether the child record in the soil or rock tables is soil, if it is, it will return Soil, if it isn&amp;rsquo;t, it will then query if the child record is Rock, if it is, it will return Rock, else it will return Other.&lt;/p&gt;
&lt;div class="p"&gt;
&lt;pre class="pre codeblock"&gt;if(countrecords([Aggregate.FieldGeologicalDescriptionsSoil.AdditionalDescription]) &amp;gt; 0, &amp;#39;Soil&amp;#39;, if(countrecords([Aggregate.FieldGeologicalDescriptionsRock.AdditionalDescription]) &amp;gt; 0,&amp;#39;Rock&amp;#39;,&amp;#39;Other&amp;#39;))&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="p"&gt;
&lt;div class="fig fignone" id="GUID-FF840EBA-79E1-4D09-9F4F-B5D4EDA19DC3__FIG_12832E6E2652470183499D907B60EB5E"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-06-06/pastedimage1653996629468v2.jpeg" alt=" " /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>