<?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: Return NULL/UNDEFINED from property expression in Project data &amp; BIM</title>
    <link>https://community.graphisoft.com/t5/Project-data-BIM/Return-NULL-UNDEFINED-from-property-expression/m-p/584899#M9979</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;you might try the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IFS(other_property = TRUE;&lt;/P&gt;
&lt;P&gt;calculation for length)&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jan 2024 10:35:14 GMT</pubDate>
    <dc:creator>Xandros</dc:creator>
    <dc:date>2024-01-22T10:35:14Z</dc:date>
    <item>
      <title>Return NULL/UNDEFINED from property expression</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/Return-NULL-UNDEFINED-from-property-expression/m-p/584695#M9966</link>
      <description>&lt;P&gt;Hi, we are using a property that should return a length IF another (boolean) property is set. Basically if the other property is true that means this object has a certain sub object and its length should be calculated according to certain criteria.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've managed to create a working IF clause basically like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF (other_property = TRUE;&lt;/P&gt;
&lt;P&gt;calculation for length;&lt;/P&gt;
&lt;P&gt;0 mm)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But instead of returning 0 mm if the other property is false, I would simply like this property to return as undefined, or NULL or something like that.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 15:07:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/Return-NULL-UNDEFINED-from-property-expression/m-p/584695#M9966</guid>
      <dc:creator>PVBergkrantz</dc:creator>
      <dc:date>2024-01-19T15:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Return NULL/UNDEFINED from property expression</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/Return-NULL-UNDEFINED-from-property-expression/m-p/584899#M9979</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;you might try the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IFS(other_property = TRUE;&lt;/P&gt;
&lt;P&gt;calculation for length)&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 10:35:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/Return-NULL-UNDEFINED-from-property-expression/m-p/584899#M9979</guid>
      <dc:creator>Xandros</dc:creator>
      <dc:date>2024-01-22T10:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Return NULL/UNDEFINED from property expression</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/Return-NULL-UNDEFINED-from-property-expression/m-p/590053#M10144</link>
      <description>&lt;P&gt;Thank you, this works in this instance. But is there no more generalized way to return an undefined/null value? I don't know the syntax for this expression language. I did manage to achieve the same result by returning "FALSE", but it comes with the error "Data types and units must be identical for all predefined output values" and I'm slightly worried this might cause issues further down the line.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 09:58:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/Return-NULL-UNDEFINED-from-property-expression/m-p/590053#M10144</guid>
      <dc:creator>PVBergkrantz</dc:creator>
      <dc:date>2024-02-27T09:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Return NULL/UNDEFINED from property expression</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/Return-NULL-UNDEFINED-from-property-expression/m-p/590056#M10145</link>
      <description>&lt;P&gt;You can't mix data types.&lt;/P&gt;
&lt;P&gt;You are asking if a condition is true, then calculate the 'length', but if it is false you want a 'string' ("Null" or "Undefined").&lt;/P&gt;
&lt;P&gt;I think the best you will get is to return a zero (0) length.&lt;/P&gt;
&lt;P&gt;Then the data type will always be 'length' and you not get an error in the expression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 10:07:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/Return-NULL-UNDEFINED-from-property-expression/m-p/590056#M10145</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2024-02-27T10:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Return NULL/UNDEFINED from property expression</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/Return-NULL-UNDEFINED-from-property-expression/m-p/590058#M10146</link>
      <description>&lt;P&gt;Not quite, I don't want a string saying "Null" or "Undefined", I would simply like the value of this property to be undefined. When editing properties in objects there is the option to manually set a property as "undefined", and that makes it behave in a certain way. I would like to be able to set the property to undefined via an expression too.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PVBergkrantz_0-1709028718159.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/54021i2F4838814622723A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PVBergkrantz_0-1709028718159.png" alt="PVBergkrantz_0-1709028718159.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 10:12:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/Return-NULL-UNDEFINED-from-property-expression/m-p/590058#M10146</guid>
      <dc:creator>PVBergkrantz</dc:creator>
      <dc:date>2024-02-27T10:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Return NULL/UNDEFINED from property expression</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/Return-NULL-UNDEFINED-from-property-expression/m-p/590061#M10147</link>
      <description>&lt;P&gt;OK then.&lt;/P&gt;
&lt;P&gt;Can you set the default for that property as 'undefined'?&lt;/P&gt;
&lt;P&gt;Then use the expression that Xandros suggested.&lt;/P&gt;
&lt;P&gt;Then it will hopefully remain 'undefined' unless the expression is true.&lt;/P&gt;
&lt;P&gt;I am not really sure as I haven't played a lot with expressions in this way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 10:19:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/Return-NULL-UNDEFINED-from-property-expression/m-p/590061#M10147</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2024-02-27T10:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Return NULL/UNDEFINED from property expression</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/Return-NULL-UNDEFINED-from-property-expression/m-p/590066#M10148</link>
      <description>&lt;P&gt;If i set the default to undefined then you can't use expressions. I'll use the expression Xandros suggested or FALSE, unless anyone else knows more. It is not critical to our project but I though I'd ask since many other programming languages have some version of NULL och Undefined that can be the value returned from functions. Thanks for the interest.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 10:28:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/Return-NULL-UNDEFINED-from-property-expression/m-p/590066#M10148</guid>
      <dc:creator>PVBergkrantz</dc:creator>
      <dc:date>2024-02-27T10:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Return NULL/UNDEFINED from property expression</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/Return-NULL-UNDEFINED-from-property-expression/m-p/590071#M10149</link>
      <description>&lt;P&gt;FALSE is basically a 0 while TRUE is a 1. So if you try to put FALSE as a result into your expression, it still has a value, while you intend to not have a value at all.&lt;/P&gt;
&lt;P&gt;Thats why IFS is working. You just define, what happens if your condition is = TRUE, while not defining (&lt;EM&gt;undefined&lt;/EM&gt;) what happens if your condition is = FALSE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A bit offtopic but as a bit of additional information to IFS. It's still possible to define what happens, if your condition is = FALSE. It would like this:&lt;/P&gt;
&lt;P&gt;IFS(Condition1; ValueIfTrue1; [Condition2; ValueIfTrue2];[...];[Conditionⁿ; ValueIfTrueⁿ]; &lt;STRONG&gt;&lt;U&gt;TRUE&lt;/U&gt;; ValueIfNoConditionIsMet&lt;/STRONG&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 11:49:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/Return-NULL-UNDEFINED-from-property-expression/m-p/590071#M10149</guid>
      <dc:creator>Xandros</dc:creator>
      <dc:date>2024-02-27T11:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Return NULL/UNDEFINED from property expression</title>
      <link>https://community.graphisoft.com/t5/Project-data-BIM/Return-NULL-UNDEFINED-from-property-expression/m-p/590082#M10151</link>
      <description>&lt;P&gt;Thanks for the extended explanation!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 12:16:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Project-data-BIM/Return-NULL-UNDEFINED-from-property-expression/m-p/590082#M10151</guid>
      <dc:creator>PVBergkrantz</dc:creator>
      <dc:date>2024-02-27T12:16:56Z</dc:date>
    </item>
  </channel>
</rss>

