<?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: &amp;quot;IF&amp;quot; Statement in &amp;quot;Equation&amp;quot; Cells in Parameter Dialogue in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13416517#M2286</link>
    <description>&lt;P&gt;Thanks to&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/37028"&gt;@pcrawley&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/486618"&gt;@johnsonshiue&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both your codes work.&lt;/P&gt;&lt;P&gt;But it is not what I am after.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit:&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/486618"&gt;@johnsonshiue&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P dir="ltr"&gt;Sorry, I mentioned your method is not what I am after because your equation is a bit of complicate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1262283"&gt;@NachoShaw&lt;/a&gt;&amp;nbsp;Thanks for your input.&lt;/P&gt;&lt;P&gt;I agree with your comment.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Apr 2025 10:32:29 GMT</pubDate>
    <dc:creator>BeKirra</dc:creator>
    <dc:date>2025-04-09T10:32:29Z</dc:date>
    <item>
      <title>"IF" Statement in "Equation" Cells in Parameter Dialogue</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13412561#M2279</link>
      <description>&lt;P&gt;Is it possible to insert "IF" statement in the equation cell (see below - it can be an &lt;FONT color="#FF0000"&gt;IPT&lt;/FONT&gt;/&lt;FONT color="#FF0000"&gt;IAM &lt;FONT color="#000000"&gt;file&lt;/FONT&gt;&lt;/FONT&gt;)?&lt;/P&gt;&lt;P&gt;Here is an example.&lt;/P&gt;&lt;P&gt;If "d0" &amp;gt; 20, then "d1" = 10, otherwise "d1" = 5&lt;/P&gt;&lt;P&gt;I've tried but no success.&lt;/P&gt;&lt;P&gt;(BTW I am not trying to create an ipart.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks In advance.&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-inline" image-alt="BeKirra_0-1744027935264.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1486504i47E0EAAE4F165E67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BeKirra_0-1744027935264.png" alt="BeKirra_0-1744027935264.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 12:21:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13412561#M2279</guid>
      <dc:creator>BeKirra</dc:creator>
      <dc:date>2025-04-07T12:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: "IF" Statement in "Equation" Cells in Parameter Dialogue</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13412637#M2280</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;You can do this via iLogic.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 12:51:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13412637#M2280</guid>
      <dc:creator>kacper.suchomski</dc:creator>
      <dc:date>2025-04-07T12:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: "IF" Statement in "Equation" Cells in Parameter Dialogue</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13413912#M2281</link>
      <description>&lt;P&gt;So "IF" statement won't work in equation cell?&lt;/P&gt;&lt;P&gt;For a simple task I don't prefer using iLogic.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 02:33:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13413912#M2281</guid>
      <dc:creator>BeKirra</dc:creator>
      <dc:date>2025-04-08T02:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: "IF" Statement in "Equation" Cells in Parameter Dialogue</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13413962#M2282</link>
      <description>&lt;P&gt;No, there is no "If" in the parameters dialogue box.&amp;nbsp; I understand not wanting to use iLogic for "a simple task", but sometimes, it really is the "simplest" solution:&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;If d0 &amp;gt; 20 Then
	d1 = 10
	Else
	d1 = 5	
End If&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because the iLogic is code operates on parameters, you don't need any special triggers - it just works.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 03:36:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13413962#M2282</guid>
      <dc:creator>pcrawley</dc:creator>
      <dc:date>2025-04-08T03:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: "IF" Statement in "Equation" Cells in Parameter Dialogue</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13415750#M2283</link>
      <description>&lt;P&gt;Hi! This is a very interesting request. Certainly, a simple iLogic rule as Peter mentioned above will work. There are other ways to solve it. Here is a solution by using parametric functions, which will lead to the logical result. Please note that when d0 = 20.00001mm, the result will be zero, which wrong. But I don't believe anybody would add have such dimension.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sign(( d0 - 20.00001 mm ) / 1 mm) * 10 mm + sign(( 20.00001 mm - d0 ) / 1 mm) * 5 mm&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 00:18:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13415750#M2283</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2025-04-09T00:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: "IF" Statement in "Equation" Cells in Parameter Dialogue</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13415758#M2284</link>
      <description>&lt;P&gt;Genius (as usual)&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/486618"&gt;@johnsonshiue&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 00:28:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13415758#M2284</guid>
      <dc:creator>pcrawley</dc:creator>
      <dc:date>2025-04-09T00:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: "IF" Statement in "Equation" Cells in Parameter Dialogue</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13415778#M2285</link>
      <description>&lt;P&gt;I'm going to chime in here, hi Johnson &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF in equations makes sense, I common topic among users. Why is iLogic not the preferred choice? While iLogic is ok, there are some company policies the do not permit code,especially when iLogic remains unprotected. ILogic makes it hard to share files with a function dependency so code share persists.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All that's needed if the inclusion of 'IF'&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 01:04:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13415778#M2285</guid>
      <dc:creator>NachoShaw</dc:creator>
      <dc:date>2025-04-09T01:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: "IF" Statement in "Equation" Cells in Parameter Dialogue</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13416517#M2286</link>
      <description>&lt;P&gt;Thanks to&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/37028"&gt;@pcrawley&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/486618"&gt;@johnsonshiue&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both your codes work.&lt;/P&gt;&lt;P&gt;But it is not what I am after.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit:&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/486618"&gt;@johnsonshiue&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P dir="ltr"&gt;Sorry, I mentioned your method is not what I am after because your equation is a bit of complicate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1262283"&gt;@NachoShaw&lt;/a&gt;&amp;nbsp;Thanks for your input.&lt;/P&gt;&lt;P&gt;I agree with your comment.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 10:32:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13416517#M2286</guid>
      <dc:creator>BeKirra</dc:creator>
      <dc:date>2025-04-09T10:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: "IF" Statement in "Equation" Cells in Parameter Dialogue</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13417078#M2287</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Certainly, having the ability to set logical statement in a parametric expression makes perfect sense. But it always comes down to the cost and the priority. Nothing is free. Please feel free to submit it to Inventor Ideas forum (&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232&lt;/A&gt;) so that the users can vote for it. The project teams will review and prioritize it accordingly.&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 14:58:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13417078#M2287</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2025-04-09T14:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: "IF" Statement in "Equation" Cells in Parameter Dialogue</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13417258#M2288</link>
      <description>&lt;P&gt;We don't expect it to be free which is why we all pay a subscription &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It already exists in the ideas station&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 16:15:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13417258#M2288</guid>
      <dc:creator>NachoShaw</dc:creator>
      <dc:date>2025-04-09T16:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: "IF" Statement in "Equation" Cells in Parameter Dialogue</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13417715#M2289</link>
      <description>&lt;P&gt;Hi Nacho,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "free" I am talking about is the cost to implementing such workflow. Though it might seem "easy" to implement, it can lead to costly technical implications.&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 20:34:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13417715#M2289</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2025-04-09T20:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: "IF" Statement in "Equation" Cells in Parameter Dialogue</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13418517#M2290</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/486618"&gt;@johnsonshiue&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Certainly, having the ability to set logical statement in a parametric expression makes perfect sense. But it always comes down to the cost and the priority. Nothing is free.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Understand and agree.&lt;/P&gt;&lt;P&gt;When Inventor updates or new release come out for install, it obviously costed to Autodesk's implement.&lt;/P&gt;&lt;P&gt;But updating and upgrading Inventor is how Autodesk is to keep it's users.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a user, I personally expect to get samll functions like this one added in or improved before next release.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 08:00:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13418517#M2290</guid>
      <dc:creator>BeKirra</dc:creator>
      <dc:date>2025-04-10T08:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: "IF" Statement in "Equation" Cells in Parameter Dialogue</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13419905#M2291</link>
      <description>&lt;P&gt;Hi! Submitting these ideas to Inventor Ideas forum or participating in the Inventor Feedback Community is the best way to escalate the need.&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 20:13:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13419905#M2291</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2025-04-10T20:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: "IF" Statement in "Equation" Cells in Parameter Dialogue</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13420332#M2292</link>
      <description>&lt;P&gt;This is a bit more simplified version of &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/486618"&gt;@johnsonshiue&lt;/a&gt; , equation:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;5 mm + 5 mm * sign(floor(d0 / 20 mm))&lt;/LI-CODE&gt;&lt;P&gt;Or this if your step size will always be 5mm:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;5 mm * ( 1 ul + sign(floor(d0 / 20 mm)) )&lt;/LI-CODE&gt;&lt;P&gt;Then you can create sudo Else If statements like this:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;5 mm * ( 1 ul + sign(floor(d0 / 20 mm)) + sign(floor(d0 / 40 mm)) + sign(floor(d0 / 60 mm)) )&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;The sign operator feels very much like an If operator in this case.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Edit:&lt;BR /&gt;I just realized you were asking for greater than 20 mm not greater than or equal to 20mm.&amp;nbsp; The floored division above will do greater than or equal to.&amp;nbsp; A simple subtraction will do greater than:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;5 mm * ( 1 ul + sign(d0 - 20 mm) )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 03:55:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13420332#M2292</guid>
      <dc:creator>J-Camper</dc:creator>
      <dc:date>2025-04-11T03:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: "IF" Statement in "Equation" Cells in Parameter Dialogue</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13420351#M2293</link>
      <description>&lt;P&gt;Be sure to use ABS(Sign) as I've had negative value instances using Sign in the past&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 03:53:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13420351#M2293</guid>
      <dc:creator>NachoShaw</dc:creator>
      <dc:date>2025-04-11T03:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: "IF" Statement in "Equation" Cells in Parameter Dialogue</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13421127#M2294</link>
      <description>&lt;P&gt;Interesting.&amp;nbsp; The documentation for Sign that I have read seems like it should be a purely binary output [&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-EE98BCED-5623-4E3B-9E98-432C6738B081" target="_blank" rel="noopener"&gt;Functions, prefixes, and algebraic operators&lt;/A&gt;].&amp;nbsp; Do you have an example of any outcome that is not a 1 or 0?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 13:00:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/quot-if-quot-statement-in-quot-equation-quot-cells-in-parameter/m-p/13421127#M2294</guid>
      <dc:creator>J-Camper</dc:creator>
      <dc:date>2025-04-11T13:00:18Z</dc:date>
    </item>
  </channel>
</rss>

