<?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 Multiple Conditions in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/if-statement-for-multiple-conditions/m-p/11497459#M144140</link>
    <description>&lt;P&gt;Thanks for the quick response&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1041683"&gt;@pball&lt;/a&gt;&amp;nbsp;. That worked.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Oct 2022 20:30:43 GMT</pubDate>
    <dc:creator>Jayaprakash.kookala8XTWT</dc:creator>
    <dc:date>2022-10-20T20:30:43Z</dc:date>
    <item>
      <title>IF statement for Multiple Conditions</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/if-statement-for-multiple-conditions/m-p/11497410#M144138</link>
      <description>&lt;P&gt;Hi, I am trying to set the value of parameter (Stringer_Width) based on another parameter (Ladder_Rise). Below iLogic code works for the first 2 conditions (Stringer Width 2.5 and 3). But not getting the 3rd and 4th conditions running. For some reason code stops to first 02 conditions. Any help on this would be greatly appreciated. Thank you...JP&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Ladder_Rise&lt;/SPAN&gt; &amp;lt;= 180 &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Stringer_Width"&lt;/SPAN&gt;) = 2.5
&lt;SPAN&gt;ElseIf&lt;/SPAN&gt; &lt;SPAN&gt;Ladder_Rise&lt;/SPAN&gt; &amp;gt; 180 &amp;lt;= 360 &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Stringer_Width"&lt;/SPAN&gt;) = 3
&lt;SPAN&gt;ElseIf&lt;/SPAN&gt; &lt;SPAN&gt;Ladder_Rise&lt;/SPAN&gt; &amp;gt; 360 &amp;lt;= 540 &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Stringer_Width"&lt;/SPAN&gt;) = 3.5
&lt;SPAN&gt;ElseIf&lt;/SPAN&gt; &lt;SPAN&gt;Ladder_Rise&lt;/SPAN&gt; &amp;gt; 540 &amp;lt;= 720 &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Stringer_Width"&lt;/SPAN&gt;) = 4
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 20:07:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/if-statement-for-multiple-conditions/m-p/11497410#M144138</guid>
      <dc:creator>Jayaprakash.kookala8XTWT</dc:creator>
      <dc:date>2022-10-20T20:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement for Multiple Conditions</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/if-statement-for-multiple-conditions/m-p/11497430#M144139</link>
      <description>&lt;P&gt;You should use this format with an if statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;If Ladder_Rise &amp;lt;= 180 Then
	Parameter("Stringer_Width") = 2.5
ElseIf Ladder_Rise &amp;gt; 180 And Ladder_Rise &amp;lt;= 360 Then
	Parameter("Stringer_Width") = 3
ElseIf Ladder_Rise &amp;gt; 360 And Ladder_Rise &amp;lt;= 540 Then
	Parameter("Stringer_Width") = 3.5
ElseIf Ladder_Rise &amp;gt; 540 And Ladder_Rise &amp;lt;= 720 Then
	Parameter("Stringer_Width") = 4
End If&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 20:19:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/if-statement-for-multiple-conditions/m-p/11497430#M144139</guid>
      <dc:creator>pball</dc:creator>
      <dc:date>2022-10-20T20:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement for Multiple Conditions</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/if-statement-for-multiple-conditions/m-p/11497459#M144140</link>
      <description>&lt;P&gt;Thanks for the quick response&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1041683"&gt;@pball&lt;/a&gt;&amp;nbsp;. That worked.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 20:30:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/if-statement-for-multiple-conditions/m-p/11497459#M144140</guid>
      <dc:creator>Jayaprakash.kookala8XTWT</dc:creator>
      <dc:date>2022-10-20T20:30:43Z</dc:date>
    </item>
  </channel>
</rss>

