<?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/AND Statement using visibility in Revit Architecture Forum</title>
    <link>https://forums.autodesk.com/t5/revit-architecture-forum/if-and-statement-using-visibility/m-p/13288288#M5892</link>
    <description>&lt;P&gt;Assuming that X is a Yes/No parameter, the following will do what you describe:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;if(not(UCAL3300), 1 = 1, if(and(UCAL3300, not(Depth &amp;gt; 2'  4")), 1 = 1, 1 = 0))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want X to be 2 when it is "on" and 1 when it is "off", then replace &lt;STRONG&gt;1=1&lt;/STRONG&gt; with &lt;STRONG&gt;2&lt;/STRONG&gt; (twice) and &lt;STRONG&gt;1=0&lt;/STRONG&gt; with &lt;STRONG&gt;1&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When UCAL3300 is unchecked, X is checked, regardless of whether Depth is less than, equal to, or greater than 2'-4".&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Snag_87c2cd7.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1460445i8AA21FCDC567DC0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snag_87c2cd7.png" alt="Snag_87c2cd7.png" /&gt;&lt;/span&gt;&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-center" image-alt="Snag_87c3ff2.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1460446i3F87E90BD3582455/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snag_87c3ff2.png" alt="Snag_87c3ff2.png" /&gt;&lt;/span&gt;&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-center" image-alt="Snag_87c77bb.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1460447iA6076DFDA0F31860/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snag_87c77bb.png" alt="Snag_87c77bb.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When UCAL3300 is checked, X is checked, when Depth is less than or equal to 2'-4", but is unchecked when Depth is greater than 2'-4".&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Snag_87d7ab4.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1460448i313C21D30DEA27C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snag_87d7ab4.png" alt="Snag_87d7ab4.png" /&gt;&lt;/span&gt;&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-center" image-alt="Snag_87e1dca.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1460449i9BBF7FF438B17E11/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snag_87e1dca.png" alt="Snag_87e1dca.png" /&gt;&lt;/span&gt;&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-center" image-alt="Snag_87e34ae.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1460450iFF0587AD236168FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snag_87e34ae.png" alt="Snag_87e34ae.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2025 14:09:52 GMT</pubDate>
    <dc:creator>David_W_Koch</dc:creator>
    <dc:date>2025-01-29T14:09:52Z</dc:date>
    <item>
      <title>IF/AND Statement using visibility</title>
      <link>https://forums.autodesk.com/t5/revit-architecture-forum/if-and-statement-using-visibility/m-p/13288126#M5891</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm trying to achieve is an IF ( AND visibility statement, outlined below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;X = IF ( AND (UCAL3300 = 1, Dept &amp;lt; 28"), 2 , 1 )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"UCAL3300" is a simple Yes/No visibility toggle&lt;/P&gt;&lt;P&gt;My goal is for "X" to always show when "UCAL3300" is toggled off and when "UCAL3300 is toggled on but the depth is greater than 28".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate the help.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 13:08:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-architecture-forum/if-and-statement-using-visibility/m-p/13288126#M5891</guid>
      <dc:creator>dwackerX6C3B</dc:creator>
      <dc:date>2025-01-29T13:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: IF/AND Statement using visibility</title>
      <link>https://forums.autodesk.com/t5/revit-architecture-forum/if-and-statement-using-visibility/m-p/13288288#M5892</link>
      <description>&lt;P&gt;Assuming that X is a Yes/No parameter, the following will do what you describe:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;if(not(UCAL3300), 1 = 1, if(and(UCAL3300, not(Depth &amp;gt; 2'  4")), 1 = 1, 1 = 0))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want X to be 2 when it is "on" and 1 when it is "off", then replace &lt;STRONG&gt;1=1&lt;/STRONG&gt; with &lt;STRONG&gt;2&lt;/STRONG&gt; (twice) and &lt;STRONG&gt;1=0&lt;/STRONG&gt; with &lt;STRONG&gt;1&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When UCAL3300 is unchecked, X is checked, regardless of whether Depth is less than, equal to, or greater than 2'-4".&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Snag_87c2cd7.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1460445i8AA21FCDC567DC0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snag_87c2cd7.png" alt="Snag_87c2cd7.png" /&gt;&lt;/span&gt;&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-center" image-alt="Snag_87c3ff2.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1460446i3F87E90BD3582455/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snag_87c3ff2.png" alt="Snag_87c3ff2.png" /&gt;&lt;/span&gt;&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-center" image-alt="Snag_87c77bb.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1460447iA6076DFDA0F31860/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snag_87c77bb.png" alt="Snag_87c77bb.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When UCAL3300 is checked, X is checked, when Depth is less than or equal to 2'-4", but is unchecked when Depth is greater than 2'-4".&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Snag_87d7ab4.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1460448i313C21D30DEA27C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snag_87d7ab4.png" alt="Snag_87d7ab4.png" /&gt;&lt;/span&gt;&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-center" image-alt="Snag_87e1dca.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1460449i9BBF7FF438B17E11/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snag_87e1dca.png" alt="Snag_87e1dca.png" /&gt;&lt;/span&gt;&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-center" image-alt="Snag_87e34ae.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1460450iFF0587AD236168FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snag_87e34ae.png" alt="Snag_87e34ae.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 14:09:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-architecture-forum/if-and-statement-using-visibility/m-p/13288288#M5892</guid>
      <dc:creator>David_W_Koch</dc:creator>
      <dc:date>2025-01-29T14:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: IF/AND Statement using visibility</title>
      <link>https://forums.autodesk.com/t5/revit-architecture-forum/if-and-statement-using-visibility/m-p/13288296#M5893</link>
      <description>&lt;P&gt;It occurs to me that the formula can be simplified.&amp;nbsp; The first if tests for whether UCAL3300 is checked or not, so there is no need to test it again.&amp;nbsp; Use this instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;if(not(UCAL3300), 1 = 1, if(not(Depth &amp;gt; 2'  4"), 1 = 1, 1 = 0))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It gives the same results.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 14:13:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-architecture-forum/if-and-statement-using-visibility/m-p/13288296#M5893</guid>
      <dc:creator>David_W_Koch</dc:creator>
      <dc:date>2025-01-29T14:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: IF/AND Statement using visibility</title>
      <link>https://forums.autodesk.com/t5/revit-architecture-forum/if-and-statement-using-visibility/m-p/13288324#M5894</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15231318"&gt;@dwackerX6C3B&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about this? Instead of nested IFs Combine the conditions for when it is on using OR/NOT/AND together in one IF&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If(or(not(UCAL3300), and(UCAL3300 , Dept &amp;gt; 28”)), 2&amp;gt;1,2&amp;lt;1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;If(or(not(UCAL3300), and(UCAL3300 , Dept &amp;gt; 28”)),2&amp;gt;1,2&amp;lt;1)&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 14:36:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-architecture-forum/if-and-statement-using-visibility/m-p/13288324#M5894</guid>
      <dc:creator>RDAOU</dc:creator>
      <dc:date>2025-01-29T14:36:31Z</dc:date>
    </item>
  </channel>
</rss>

