<?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 and CONTAINS expressions example in Collaboration with other software</title>
    <link>https://community.graphisoft.com/t5/Collaboration-with-other/IF-and-CONTAINS-expressions-example/m-p/321429#M39287</link>
    <description>&lt;P&gt;This could be simplified more by using a STRING FROM LEFT function inside an IF statement to find the first two letters and return a specific result if it contains 'EX'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF ( LEFT ( Zone Name, 2 ) = "EX", "&lt;SPAN&gt;SMC 23.45.510.D.10", "" )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And for the area:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;IF ( LEFT ( Zone Name, 2 ) = "EX", 0m2, Measured Area )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Only one property is needed for each with this method.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There is a lot of information about functions in the online reference guide which I've found very useful -&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://helpcenter.graphisoft.com/user-guide-chapter/86540/" target="_blank"&gt;https://helpcenter.graphisoft.com/user-guide-chapter/86540/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Nov 2021 07:56:52 GMT</pubDate>
    <dc:creator>Rico</dc:creator>
    <dc:date>2021-11-17T07:56:52Z</dc:date>
    <item>
      <title>IF and CONTAINS expressions example</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/IF-and-CONTAINS-expressions-example/m-p/321388#M39284</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm quite new having just switched from Revit to Archicad and I want to learn more about expressions. I'm struggling here with this. I'd like to write an expression to take the Zone (element ID) and if it contains "EX" in it I want it to return 0 and if not, return the area.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd also like to write an expression that says if the zone says "EX" then exemption says "SMC 23.45.510.D.10". As of right now, I've just copied and pasted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If any of you know of resources where I can learn more about expressions, I'd greatly appreciate it. Thanks&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-11-16 at 3.35.59 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/15837iCEA7FA545D94451E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-11-16 at 3.35.59 PM.png" alt="Screen Shot 2021-11-16 at 3.35.59 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 10:30:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/IF-and-CONTAINS-expressions-example/m-p/321388#M39284</guid>
      <dc:creator>pb9</dc:creator>
      <dc:date>2025-01-30T10:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: IF and CONTAINS expressions example</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/IF-and-CONTAINS-expressions-example/m-p/321400#M39285</link>
      <description>&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sure one of the other more experienced users can solve this for you with more details.&lt;/P&gt;&lt;P&gt;In the interim thou something like this might be a start.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF(Zone Name = &lt;STRONG&gt;"Ex"&lt;/STRONG&gt;,"0","Other Text")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since your values don't actually = Ex they contain Ex, I think you will need to replace the bold text above with a "Contains" function.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 01:00:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/IF-and-CONTAINS-expressions-example/m-p/321400#M39285</guid>
      <dc:creator>Josh Verran</dc:creator>
      <dc:date>2021-11-17T01:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: IF and CONTAINS expressions example</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/IF-and-CONTAINS-expressions-example/m-p/321410#M39286</link>
      <description>&lt;P&gt;Actually you could try this, have one property that extracts the first two characters of a property (in this case that would be extracting "EX").&lt;/P&gt;&lt;P&gt;Then have another property that says if property = "Ex", then show the text you mentioned, if not then show 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below will hopefully help. I have used a property called "Name/Type" where as yours would probably be the zone name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd be interested to see how the Contains function could be utilised, I tried by saying if the text contained EX then return a True or False result, but then I couldn't use that as an argument in the original expression as had different data type. You could probably convert that to text, but I'm sure theres a simpler method. Cool to have a play around and find different methods to extract info.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/15847i455EE143846225F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/15848i3EAD56AAF9CF0E91/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/15849iB6B0DEBAA6A75D4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.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, 17 Nov 2021 01:52:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/IF-and-CONTAINS-expressions-example/m-p/321410#M39286</guid>
      <dc:creator>Josh Verran</dc:creator>
      <dc:date>2021-11-17T01:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: IF and CONTAINS expressions example</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/IF-and-CONTAINS-expressions-example/m-p/321429#M39287</link>
      <description>&lt;P&gt;This could be simplified more by using a STRING FROM LEFT function inside an IF statement to find the first two letters and return a specific result if it contains 'EX'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF ( LEFT ( Zone Name, 2 ) = "EX", "&lt;SPAN&gt;SMC 23.45.510.D.10", "" )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And for the area:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;IF ( LEFT ( Zone Name, 2 ) = "EX", 0m2, Measured Area )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Only one property is needed for each with this method.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There is a lot of information about functions in the online reference guide which I've found very useful -&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://helpcenter.graphisoft.com/user-guide-chapter/86540/" target="_blank"&gt;https://helpcenter.graphisoft.com/user-guide-chapter/86540/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 07:56:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/IF-and-CONTAINS-expressions-example/m-p/321429#M39287</guid>
      <dc:creator>Rico</dc:creator>
      <dc:date>2021-11-17T07:56:52Z</dc:date>
    </item>
  </channel>
</rss>

