<?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: Property with expression and IF statement in Documentation</title>
    <link>https://community.graphisoft.com/t5/Documentation/Property-with-expression-and-IF-statement/m-p/385034#M61045</link>
    <description>&lt;P&gt;I can see that I worded that badly. I meant that it should always be in the Value and the same any time its used, but for my CONCAT expression I want there to be " " if String2 is undefined and "String1String2" if both are defined. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jun 2023 08:05:29 GMT</pubDate>
    <dc:creator>ATS</dc:creator>
    <dc:date>2023-06-23T08:05:29Z</dc:date>
    <item>
      <title>Property with expression and IF statement</title>
      <link>https://community.graphisoft.com/t5/Documentation/Property-with-expression-and-IF-statement/m-p/385011#M61040</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not skilled enough with the expression tool or code to understand how my expression should be set up and hope someone can teach me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 "String" value properties that I want to merge, in a new property, but be blank or " " if not both values are defined.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;String1 has a default value - Value "ABC" that should always be there.&lt;/P&gt;&lt;P&gt;String2 has Default value - Undefined and should be filled in as needed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I've set up the Expression like this:&lt;/P&gt;&lt;P&gt;CONCAT ( String1; String2 )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works well if both values are defined, but leave a "---" as autotext if I don't fill in a value for String2.&lt;/P&gt;&lt;P&gt;Is there a way to add a IF function that says&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"if String2 = undefined " " else&amp;nbsp;CONCAT ( String1; String2 )"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That way the --- would be hidden for a blank space if the value is not filled in yet.&lt;/P&gt;&lt;P&gt;Thank you for any help.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 07:24:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Property-with-expression-and-IF-statement/m-p/385011#M61040</guid>
      <dc:creator>ATS</dc:creator>
      <dc:date>2023-06-23T07:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Property with expression and IF statement</title>
      <link>https://community.graphisoft.com/t5/Documentation/Property-with-expression-and-IF-statement/m-p/385025#M61041</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CONCAT(String1; IF(ISUNDEFINED (String2);"";String2))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can directly use the IF-Formula inside of the CONCAT. Hope, this works for you - otherwise it needs some adjusting in the condition-part of the IF&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 07:49:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Property-with-expression-and-IF-statement/m-p/385025#M61041</guid>
      <dc:creator>Xandros</dc:creator>
      <dc:date>2023-06-23T07:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Property with expression and IF statement</title>
      <link>https://community.graphisoft.com/t5/Documentation/Property-with-expression-and-IF-statement/m-p/385029#M61042</link>
      <description>&lt;P&gt;Thank you for the quick reply. The suggested line adds String1 before considering if String2 is undefined, but I managed to just do the CONCAT inside IF instead of IF inside CONCAT to fix that.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IF(ISUNDEFINED (String2);"";CONCAT (String1; String2))&lt;/LI-CODE&gt;&lt;P&gt;You helped me with the right puzzle pieces and I got it working so thanks again! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 07:55:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Property-with-expression-and-IF-statement/m-p/385029#M61042</guid>
      <dc:creator>ATS</dc:creator>
      <dc:date>2023-06-23T07:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Property with expression and IF statement</title>
      <link>https://community.graphisoft.com/t5/Documentation/Property-with-expression-and-IF-statement/m-p/385031#M61043</link>
      <description>&lt;P&gt;CONCAT (String1, IF (ISUNDEFINED (String2),"", String2))&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 08:02:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Property-with-expression-and-IF-statement/m-p/385031#M61043</guid>
      <dc:creator>kmitotk</dc:creator>
      <dc:date>2023-06-23T08:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Property with expression and IF statement</title>
      <link>https://community.graphisoft.com/t5/Documentation/Property-with-expression-and-IF-statement/m-p/385032#M61044</link>
      <description>&lt;P&gt;You're welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/36747"&gt;@ATS&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;String1 has a default value - Value "ABC" that should always be there.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If String1 needs to always be there, i feel like your code needs to be adjusted slightliy:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IF(ISUNDEFINED (String2);String1;CONCAT (String1; String2))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 08:02:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Property-with-expression-and-IF-statement/m-p/385032#M61044</guid>
      <dc:creator>Xandros</dc:creator>
      <dc:date>2023-06-23T08:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Property with expression and IF statement</title>
      <link>https://community.graphisoft.com/t5/Documentation/Property-with-expression-and-IF-statement/m-p/385034#M61045</link>
      <description>&lt;P&gt;I can see that I worded that badly. I meant that it should always be in the Value and the same any time its used, but for my CONCAT expression I want there to be " " if String2 is undefined and "String1String2" if both are defined. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 08:05:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Property-with-expression-and-IF-statement/m-p/385034#M61045</guid>
      <dc:creator>ATS</dc:creator>
      <dc:date>2023-06-23T08:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Property with expression and IF statement</title>
      <link>https://community.graphisoft.com/t5/Documentation/Property-with-expression-and-IF-statement/m-p/385036#M61046</link>
      <description>&lt;P&gt;I am not sure if you can check if a property is "undefined".&lt;/P&gt;
&lt;P&gt;At least I couldn't get it to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if you give it an empty default value you can do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BarryKelly_0-1687508143224.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/39467i6502B8AD4182E460/image-size/large?v=v2&amp;amp;px=999" role="button" title="BarryKelly_0-1687508143224.png" alt="BarryKelly_0-1687508143224.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 08:17:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Property-with-expression-and-IF-statement/m-p/385036#M61046</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-06-23T08:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Property with expression and IF statement</title>
      <link>https://community.graphisoft.com/t5/Documentation/Property-with-expression-and-IF-statement/m-p/385038#M61047</link>
      <description>&lt;P&gt;OK I completely missed ISUNDEFINED.&lt;/P&gt;
&lt;P&gt;Still learning. &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 08:31:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Property-with-expression-and-IF-statement/m-p/385038#M61047</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-06-23T08:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Property with expression and IF statement</title>
      <link>https://community.graphisoft.com/t5/Documentation/Property-with-expression-and-IF-statement/m-p/385041#M61048</link>
      <description>&lt;P&gt;I guess thats the point of the community&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 08:32:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Documentation/Property-with-expression-and-IF-statement/m-p/385041#M61048</guid>
      <dc:creator>ATS</dc:creator>
      <dc:date>2023-06-23T08:32:20Z</dc:date>
    </item>
  </channel>
</rss>

