<?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 statement for &amp;quot;Values&amp;quot; (SOLVED BEFORE I POSTED THIS) in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/IF-statement-for-quot-Values-quot-SOLVED-BEFORE-I-POSTED-THIS/m-p/269710#M8792</link>
    <description>Hi @Barry&lt;BR /&gt;
&lt;BR /&gt;
I was wondering if there was a way to use snippet that you have just shared with custom values  but with values{2} instead of values ?</description>
    <pubDate>Mon, 04 Nov 2019 02:53:06 GMT</pubDate>
    <dc:creator>Nader Belal</dc:creator>
    <dc:date>2019-11-04T02:53:06Z</dc:date>
    <item>
      <title>IF statement for "Values" (SOLVED BEFORE I POSTED THIS)</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/IF-statement-for-quot-Values-quot-SOLVED-BEFORE-I-POSTED-THIS/m-p/269708#M8790</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I have a list of values for a parameter. For example;&lt;BR /&gt;
VALUES "Number" 'One', 'Two', 'Three', 'Four'&lt;BR /&gt;
&lt;BR /&gt;
 What I would like to know is if there is a simple way for an IF/OR statement to include all the values in one shot. The way I do it now is;&lt;BR /&gt;
IF Number = "One" OR Number = "Two" or (and so on)&lt;BR /&gt;
&lt;BR /&gt;
Something like IF Number = "Any of its values" THEN ............&lt;BR /&gt;
&lt;BR /&gt;
So as I was writing this post I had a thought which seems to have worked the way I wanted it to. Basically if the Number parameter is not empty then do something. &lt;BR /&gt;
IF Number &amp;lt;&amp;gt; "" THEN ............&lt;BR /&gt;
&lt;BR /&gt;
I figured I'd continue with the post in case it might help someone else and to see if maybe there are other thoughts on this.&lt;BR /&gt;
&lt;BR /&gt;
Doug&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 20 Mar 2016 17:14:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/IF-statement-for-quot-Values-quot-SOLVED-BEFORE-I-POSTED-THIS/m-p/269708#M8790</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-20T17:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement for "Values" (SOLVED BEFORE I POS</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/IF-statement-for-quot-Values-quot-SOLVED-BEFORE-I-POSTED-THIS/m-p/269709#M8791</link>
      <description>Why bother with the IF/THEN statement at all if it doesn't matter what the value of Number is?&lt;BR /&gt;
&lt;BR /&gt;
Unless you are allowing for a blank value (i.e. VALUES "Number" 'One', 'Two', 'Three', 'Four'&lt;FONT color="#ff0009"&gt;, ''&lt;/FONT&gt; or VALUES "Number" 'One', 'Two', 'Three', 'Four'&lt;FONT color="#c80000"&gt;, Custom&lt;/FONT&gt;)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 21 Mar 2016 01:13:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/IF-statement-for-quot-Values-quot-SOLVED-BEFORE-I-POSTED-THIS/m-p/269709#M8791</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2016-03-21T01:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement for "Values" (SOLVED BEFORE I POSTED THIS)</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/IF-statement-for-quot-Values-quot-SOLVED-BEFORE-I-POSTED-THIS/m-p/269710#M8792</link>
      <description>Hi @Barry&lt;BR /&gt;
&lt;BR /&gt;
I was wondering if there was a way to use snippet that you have just shared with custom values  but with values{2} instead of values ?</description>
      <pubDate>Mon, 04 Nov 2019 02:53:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/IF-statement-for-quot-Values-quot-SOLVED-BEFORE-I-POSTED-THIS/m-p/269710#M8792</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-11-04T02:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement for "Values" (SOLVED BEFORE I POSTED THIS)</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/IF-statement-for-quot-Values-quot-SOLVED-BEFORE-I-POSTED-THIS/m-p/269711#M8793</link>
      <description>&lt;BLOCKQUOTE&gt;Moonlight wrote:&lt;BR /&gt;
I was wondering if there was a way to use snippet that you have just shared with custom values  but with values{2} instead of values ?
&lt;/BLOCKQUOTE&gt;

I haven't used a lot of VALUES{2} in my coding - haven't really had the need.&lt;BR /&gt;
But I don't think you can use CUSTOM (or RANGE ?) with VALUES{2} because you are linking a value definition with an expression, so it is not something that the user can input as a custom value.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 05 Nov 2019 01:43:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/IF-statement-for-quot-Values-quot-SOLVED-BEFORE-I-POSTED-THIS/m-p/269711#M8793</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2019-11-05T01:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement for "Values" (SOLVED BEFORE I POSTED THIS)</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/IF-statement-for-quot-Values-quot-SOLVED-BEFORE-I-POSTED-THIS/m-p/269712#M8794</link>
      <description>Thank you for the confirmation @Barry Kelly&lt;BR /&gt;
&lt;BR /&gt;
The only way to make it using "Custom" is by creating another parameter that is only activated when the parameter associated with value{2} have the string value of custom</description>
      <pubDate>Tue, 05 Nov 2019 18:07:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/IF-statement-for-quot-Values-quot-SOLVED-BEFORE-I-POSTED-THIS/m-p/269712#M8794</guid>
      <dc:creator>Nader Belal</dc:creator>
      <dc:date>2019-11-05T18:07:39Z</dc:date>
    </item>
  </channel>
</rss>

