<?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: How do I write this expression the Archicad way? in Project data &amp; BIM</title>
    <link>https://community.graphisoft.com/t5/Project-data-BIM/How-do-I-write-this-expression-the-Archicad-way/m-p/574269#M9768</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;We could also write it simply like this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CONCAT ( {Property:Généralités/House}; STR ( {Property:Paramètres généraux/Numéro d'étage d'implantation}; 0 ) )&lt;/LI-CODE&gt;
&lt;P&gt;Or better&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IF ( ISUNDEFINED ( {Property:Généralités/House} ); "-"; CONCAT ( {Property:Généralités/House}; STR ( {Property:Paramètres généraux/Numéro d'étage d'implantation}; 0 ) ) )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2023 12:35:20 GMT</pubDate>
    <dc:creator>Yves</dc:creator>
    <dc:date>2023-11-06T12:35:20Z</dc:date>
    <item>
      <title>How do I write this expression the Archicad way?</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/How-do-I-write-this-expression-the-Archicad-way/m-p/574247#M9762</link>
      <description>&lt;P&gt;I have a string property "House" as option set with A,B,C as values.&lt;/P&gt;
&lt;P&gt;I want to write an expression for the property "FM" like below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IF
home story =1 AND House = A THEN FM = "A1"
ELSEIF 
home story =2 AND House = A THEN FM = "A2"
ELSEIF
home story =1 AND House = B THEN FM = "B1"
ELSE FM="no value"
ENDIF&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried just a two basic IF - AND expressions but I am doing something wrong...what could it be?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF ( AND ( Home Story Number = 1; House = "A" ); "1A"; "-" )&lt;/P&gt;
&lt;P&gt;IF ( AND ( Home Story Number = 2; House = "A" ); "2A"; "-" )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first IF sentence decides everything and gives FM=1A for everything on story 1 with House = A but for all others it returns "no value"...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 22:32:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/How-do-I-write-this-expression-the-Archicad-way/m-p/574247#M9762</guid>
      <dc:creator>Mats Knutsson</dc:creator>
      <dc:date>2023-11-07T22:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do I write this expression the Archicad way?</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/How-do-I-write-this-expression-the-Archicad-way/m-p/574254#M9764</link>
      <description>&lt;P&gt;With Properties they handle IF differently for multiple conditions. Have a look at &lt;A href="https://help.graphisoft.com/AC/26/INT/index.htm?rhcsh=1&amp;amp;rhnewwnd=0&amp;amp;rhmapid=#t=_AC26_Help%2F061_ExpressionFunctions%2F061_ExpressionFunctions-18.htm&amp;amp;rhsearch=IFS&amp;amp;rhhlterm=IFS&amp;amp;rhsyns=%20" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;THIS&lt;/STRONG&gt;&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your examples you are also using ; instead of a basic , between arguments.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 12:02:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/How-do-I-write-this-expression-the-Archicad-way/m-p/574254#M9764</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2023-11-06T12:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I write this expression the Archicad way?</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/How-do-I-write-this-expression-the-Archicad-way/m-p/574268#M9767</link>
      <description>&lt;P&gt;Got it. Thanx! I did try IFS at first but couldn't get it to work... It was becuse I used too many brackets.&lt;/P&gt;
&lt;P&gt;I'd like more examples in the GS learning material...like my code below.&lt;/P&gt;
&lt;P&gt;I'm on Swedish Windows and we use ; instead of ,&amp;nbsp; &amp;nbsp;(highly irritating when trying to follow international tutorials).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IFS
  (
      AND ( Home Story Number = 1; House = "C" ); "1C";
      AND ( Home Story Number = 2; House = "C" ); "2C"
   )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 07 Nov 2023 22:32:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/How-do-I-write-this-expression-the-Archicad-way/m-p/574268#M9767</guid>
      <dc:creator>Mats Knutsson</dc:creator>
      <dc:date>2023-11-07T22:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I write this expression the Archicad way?</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/How-do-I-write-this-expression-the-Archicad-way/m-p/574269#M9768</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;We could also write it simply like this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CONCAT ( {Property:Généralités/House}; STR ( {Property:Paramètres généraux/Numéro d'étage d'implantation}; 0 ) )&lt;/LI-CODE&gt;
&lt;P&gt;Or better&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IF ( ISUNDEFINED ( {Property:Généralités/House} ); "-"; CONCAT ( {Property:Généralités/House}; STR ( {Property:Paramètres généraux/Numéro d'étage d'implantation}; 0 ) ) )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 12:35:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/How-do-I-write-this-expression-the-Archicad-way/m-p/574269#M9768</guid>
      <dc:creator>Yves</dc:creator>
      <dc:date>2023-11-06T12:35:20Z</dc:date>
    </item>
  </channel>
</rss>

