<?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: Is it possible to write an IF/THEN formula for this situation? in Revit Architecture Forum</title>
    <link>https://forums.autodesk.com/t5/revit-architecture-forum/is-it-possible-to-write-an-if-then-formula-for-this-situation/m-p/9210915#M164024</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4251432"&gt;@Sahay_R&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;What about this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF parameter A is 4"-21", THEN parameter A1 = 3"&lt;/P&gt;
&lt;P&gt;IF parameter A - &lt;FONT size="7" color="#FF0000"&gt;&lt;STRONG&gt;21.5"&lt;/STRONG&gt;&lt;/FONT&gt;-23", THEN parameter A2 = 4"&lt;/P&gt;
&lt;P&gt;IF parameter A = &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="7"&gt;21.5"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;-25", THEN parameter A3 = 5"&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Are you sure about those?&amp;nbsp; What if A is out-of-range?&lt;/P&gt;</description>
    <pubDate>Thu, 19 Dec 2019 02:24:16 GMT</pubDate>
    <dc:creator>ToanDN</dc:creator>
    <dc:date>2019-12-19T02:24:16Z</dc:date>
    <item>
      <title>Is it possible to write an IF/THEN formula for this situation?</title>
      <link>https://forums.autodesk.com/t5/revit-architecture-forum/is-it-possible-to-write-an-if-then-formula-for-this-situation/m-p/9210035#M164018</link>
      <description>&lt;P&gt;Hell Revit Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am attempting to write a formula&amp;nbsp; that looks at ranges of values instead of a single value -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF parameter A is 4"-21", THEN parameter A1 = 3"&lt;/P&gt;
&lt;P&gt;IF parameter B - 21.5"-23", THEN parameter B1 = 4"&lt;/P&gt;
&lt;P&gt;IF parameter C = 21.5"-25", THEN parameter C1 = 5"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;Rina&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 17:03:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-architecture-forum/is-it-possible-to-write-an-if-then-formula-for-this-situation/m-p/9210035#M164018</guid>
      <dc:creator>Sahay_R</dc:creator>
      <dc:date>2019-12-18T17:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to write an IF/THEN formula for this situation?</title>
      <link>https://forums.autodesk.com/t5/revit-architecture-forum/is-it-possible-to-write-an-if-then-formula-for-this-situation/m-p/9210055#M164019</link>
      <description>&lt;P&gt;you mean: A1 =if (and(A &amp;gt; 0' 4", A &amp;lt; 1' 9"), 0' 3", 0')?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's A1 if False? 0"? &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 17:19:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-architecture-forum/is-it-possible-to-write-an-if-then-formula-for-this-situation/m-p/9210055#M164019</guid>
      <dc:creator>barthbradley</dc:creator>
      <dc:date>2019-12-18T17:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to write an IF/THEN formula for this situation?</title>
      <link>https://forums.autodesk.com/t5/revit-architecture-forum/is-it-possible-to-write-an-if-then-formula-for-this-situation/m-p/9210060#M164020</link>
      <description>&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #2e2e2e; font-family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;hmmm I'm thinking maybe something like...&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #2e2e2e; font-family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;&lt;I&gt;&lt;BR /&gt;A1 --&amp;gt; formula : &lt;/I&gt;&lt;SPAN style="background-color: transparent; box-sizing: border-box; color: #2e2e2e; display: inline; float: none; font-family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;IF ( AND (A &amp;gt;4" , A&amp;lt; 21"), 3", &amp;lt;else&amp;gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #2e2e2e; font-family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;&lt;I&gt;B1 --&amp;gt; formula : &lt;/I&gt;&lt;SPAN style="background-color: transparent; box-sizing: border-box; color: #2e2e2e; display: inline; float: none; font-family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;IF ( AND (B&amp;gt;21.5" , A&amp;lt; 23"), 4", &amp;lt;else&amp;gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #2e2e2e; font-family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;&lt;I&gt;C1&amp;nbsp; --&amp;gt; formula : &lt;/I&gt;&lt;SPAN style="background-color: transparent; box-sizing: border-box; color: #2e2e2e; display: inline; float: none; font-family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;IF ( AND (C &amp;gt;21.5" , A&amp;lt;25"), 5", &amp;lt;else&amp;gt;)&lt;BR /&gt;&lt;BR /&gt;or perhaps something for lookup table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 17:18:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-architecture-forum/is-it-possible-to-write-an-if-then-formula-for-this-situation/m-p/9210060#M164020</guid>
      <dc:creator>martijn_pater</dc:creator>
      <dc:date>2019-12-18T17:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to write an IF/THEN formula for this situation?</title>
      <link>https://forums.autodesk.com/t5/revit-architecture-forum/is-it-possible-to-write-an-if-then-formula-for-this-situation/m-p/9210120#M164021</link>
      <description>&lt;P&gt;Seriously&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4251432"&gt;@Sahay_R&lt;/a&gt; ???&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 17:39:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-architecture-forum/is-it-possible-to-write-an-if-then-formula-for-this-situation/m-p/9210120#M164021</guid>
      <dc:creator>barthbradley</dc:creator>
      <dc:date>2019-12-18T17:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to write an IF/THEN formula for this situation?</title>
      <link>https://forums.autodesk.com/t5/revit-architecture-forum/is-it-possible-to-write-an-if-then-formula-for-this-situation/m-p/9210126#M164022</link>
      <description>&lt;P&gt;What about this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF parameter A is 4"-21", THEN parameter A1 = 3"&lt;/P&gt;
&lt;P&gt;IF parameter A - 21.5"-23", THEN parameter A2 = 4"&lt;/P&gt;
&lt;P&gt;IF parameter A = 21.5"-25", THEN parameter A3 = 5"&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 17:40:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-architecture-forum/is-it-possible-to-write-an-if-then-formula-for-this-situation/m-p/9210126#M164022</guid>
      <dc:creator>Sahay_R</dc:creator>
      <dc:date>2019-12-18T17:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to write an IF/THEN formula for this situation?</title>
      <link>https://forums.autodesk.com/t5/revit-architecture-forum/is-it-possible-to-write-an-if-then-formula-for-this-situation/m-p/9210133#M164023</link>
      <description>&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 17:43:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-architecture-forum/is-it-possible-to-write-an-if-then-formula-for-this-situation/m-p/9210133#M164023</guid>
      <dc:creator>Sahay_R</dc:creator>
      <dc:date>2019-12-18T17:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to write an IF/THEN formula for this situation?</title>
      <link>https://forums.autodesk.com/t5/revit-architecture-forum/is-it-possible-to-write-an-if-then-formula-for-this-situation/m-p/9210915#M164024</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4251432"&gt;@Sahay_R&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;What about this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF parameter A is 4"-21", THEN parameter A1 = 3"&lt;/P&gt;
&lt;P&gt;IF parameter A - &lt;FONT size="7" color="#FF0000"&gt;&lt;STRONG&gt;21.5"&lt;/STRONG&gt;&lt;/FONT&gt;-23", THEN parameter A2 = 4"&lt;/P&gt;
&lt;P&gt;IF parameter A = &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="7"&gt;21.5"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;-25", THEN parameter A3 = 5"&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Are you sure about those?&amp;nbsp; What if A is out-of-range?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 02:24:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-architecture-forum/is-it-possible-to-write-an-if-then-formula-for-this-situation/m-p/9210915#M164024</guid>
      <dc:creator>ToanDN</dc:creator>
      <dc:date>2019-12-19T02:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to write an IF/THEN formula for this situation?</title>
      <link>https://forums.autodesk.com/t5/revit-architecture-forum/is-it-possible-to-write-an-if-then-formula-for-this-situation/m-p/9212188#M164025</link>
      <description>&lt;P&gt;Something odd about those formulas...are all those parameters in 1 project? if they are, and Parameter A (which I suppose has a unique value) is driving 3 different parameters A1, A2 and A3, what happens to A2 and A3 when the first condition/if statement&amp;nbsp; is satisficed? same when the second and 3rd IFs are satified!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nest the If/Then statements is such case would be more logical … I think&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 14:44:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-architecture-forum/is-it-possible-to-write-an-if-then-formula-for-this-situation/m-p/9212188#M164025</guid>
      <dc:creator>RDAOU</dc:creator>
      <dc:date>2019-12-19T14:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to write an IF/THEN formula for this situation?</title>
      <link>https://forums.autodesk.com/t5/revit-architecture-forum/is-it-possible-to-write-an-if-then-formula-for-this-situation/m-p/9214623#M164026</link>
      <description>&lt;P&gt;Sorry about that,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/244938"&gt;@ToanDN&lt;/a&gt;&amp;nbsp;- I clacked when I should have clicked!&lt;/P&gt;
&lt;P&gt;You are right - it should have been&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF00FF"&gt;IF parameter A is 4"-21", THEN parameter A1 = 3"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF00FF"&gt;IF parameter A -&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="4"&gt;21.5"&lt;/FONT&gt;-23", THEN parameter A2 = 4"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF00FF"&gt;IF parameter A =&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="7"&gt;23.5"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;-25", THEN parameter A3 = 5"&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 18:40:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-architecture-forum/is-it-possible-to-write-an-if-then-formula-for-this-situation/m-p/9214623#M164026</guid>
      <dc:creator>Sahay_R</dc:creator>
      <dc:date>2019-12-20T18:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to write an IF/THEN formula for this situation?</title>
      <link>https://forums.autodesk.com/t5/revit-architecture-forum/is-it-possible-to-write-an-if-then-formula-for-this-situation/m-p/9215979#M164027</link>
      <description>&lt;P&gt;Just a few comments/questions:) First you are not really writing down ranges [x,y] mathematically here, second you haven't provided a definition of &amp;lt;else&amp;gt; for A1/A2/A3 if your condition in your if statement returns false ie. if it falls outside of this range, third is that parameters A1/A2/A3 can test for the same condition and return values accordingly... Perhaps you could elaborate on what you were trying to make here.&lt;BR /&gt;&lt;BR /&gt;As you've written it down (is/-/=), it's something like A1=3" if A=-17", A2=4" if A is a rational number (lenght/number?)/always true?, A3=5" if A=-1.5" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; So I'm going to assume that's not what you meant. ^^ But actually if you want to include 4" and 21" in your specified range &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;[4",21"] = 4"&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; box-sizing: border-box; color: #666666; cursor: text; display: inline; float: none; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;≤&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;A≤21" your formula/conditional statement should look like:&lt;BR /&gt;&lt;FONT&gt;A1 with formula; if(and(not(A &amp;lt; 4"), not(A &amp;gt; 21")), 3", &lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;0"&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;BR /&gt;&lt;SPAN style="background-color: #ffffff; box-sizing: border-box; color: #666666; cursor: text; display: inline; float: none; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;FONT&gt;A2 with formula; if(and(not(A &amp;lt; 21.5"), not(A &amp;gt; 23")), 4", &lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;0"&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;BR /&gt;A3 with formula; if(and(not(A &amp;lt; 23.5"), not(A &amp;gt; 25")), 5", &lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;0"&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;BR /&gt;&lt;BR /&gt;The formula's posted earlier actually represents the range as (4",21") instead of [4",21"]. Since you haven't specified values for A1/2/3 if A falls outside of these ranges, like barthbradley I've set all of them to 0... But possibly you need it to be something else, that remains unclear...&lt;BR /&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2019 12:06:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-architecture-forum/is-it-possible-to-write-an-if-then-formula-for-this-situation/m-p/9215979#M164027</guid>
      <dc:creator>martijn_pater</dc:creator>
      <dc:date>2019-12-22T12:06:21Z</dc:date>
    </item>
  </channel>
</rss>

