<?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: How to use IF-ELSE condition and a proper use of brackets?! in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-if-else-condition-and-a-proper-use-of-brackets/m-p/13550184#M55026</link>
    <description>&lt;P&gt;The syntax is bit hidden in the manual, you find it under “Writing Logic in FlexSim”: &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/19.2/Reference/CodingInFlexSim/WritingLogic/#flow" target="_blank"&gt;Flow Constructs&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Mar 2020 15:13:49 GMT</pubDate>
    <dc:creator>joerg_vogel_HsH</dc:creator>
    <dc:date>2020-03-27T15:13:49Z</dc:date>
    <item>
      <title>How to use IF-ELSE condition and a proper use of brackets?!</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-if-else-condition-and-a-proper-use-of-brackets/m-p/13550181#M55023</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.2.0 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;A id="26822" href="https://answers.flexsim.com/storage/attachments/26822-file-funzionante-base-difettoso.fsm"&gt;file-funzionante-base-difettoso.fsm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hello, I would like some advice on how to use the if-else condition. I have wrotten the code of the alghorithm that I have attached.&lt;/P&gt;
&lt;P&gt;When I use the only IF declaration the alghorithm work without problem but when I add the else condition, I have an error that declare that I didn't use the brackets in a proper way. I have checked many times but maybe I have some problem on how to use the IF-ELSE condition.&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;Francesco&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 14:22:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-if-else-condition-and-a-proper-use-of-brackets/m-p/13550181#M55023</guid>
      <dc:creator>francesco_v2</dc:creator>
      <dc:date>2020-03-27T14:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use IF-ELSE condition and a proper use of brackets?!</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-if-else-condition-and-a-proper-use-of-brackets/m-p/13550182#M55024</link>
      <description>&lt;P&gt;I have talked about the ELSE in line 104.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 14:25:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-if-else-condition-and-a-proper-use-of-brackets/m-p/13550182#M55024</guid>
      <dc:creator>francesco_v2</dc:creator>
      <dc:date>2020-03-27T14:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to use IF-ELSE condition and a proper use of brackets?!</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-if-else-condition-and-a-proper-use-of-brackets/m-p/13550183#M55025</link>
      <description>&lt;P&gt;The following code is wrong:&lt;/P&gt;&lt;PRE&gt;else (solape&amp;gt; fracrepetidos2)
&lt;/PRE&gt;&lt;P&gt;A straight else statement cannot have a condition. If you want a condition on the else, it should be an else if:&lt;/P&gt;&lt;PRE&gt;else if (solape &amp;gt; fracrepetidos2)&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Mar 2020 14:29:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-if-else-condition-and-a-proper-use-of-brackets/m-p/13550183#M55025</guid>
      <dc:creator>anthony_johnsonT83CM</dc:creator>
      <dc:date>2020-03-27T14:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use IF-ELSE condition and a proper use of brackets?!</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-if-else-condition-and-a-proper-use-of-brackets/m-p/13550184#M55026</link>
      <description>&lt;P&gt;The syntax is bit hidden in the manual, you find it under “Writing Logic in FlexSim”: &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/19.2/Reference/CodingInFlexSim/WritingLogic/#flow" target="_blank"&gt;Flow Constructs&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 15:13:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-if-else-condition-and-a-proper-use-of-brackets/m-p/13550184#M55026</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2020-03-27T15:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use IF-ELSE condition and a proper use of brackets?!</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-if-else-condition-and-a-proper-use-of-brackets/m-p/13550185#M55027</link>
      <description>&lt;P&gt;@anthony.johnson Do you know if si possible include a range of number in a IF condition?. I would like to have a condition that if a specific number is in a specific range, the IF condition is TRUE.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 16:11:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-if-else-condition-and-a-proper-use-of-brackets/m-p/13550185#M55027</guid>
      <dc:creator>francesco_v2</dc:creator>
      <dc:date>2020-03-27T16:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use IF-ELSE condition and a proper use of brackets?!</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-if-else-condition-and-a-proper-use-of-brackets/m-p/13550186#M55028</link>
      <description>&lt;P&gt;You can use "&amp;amp;&amp;amp;" to check that multiple conditions are all true:&lt;/P&gt;&lt;PRE&gt;if(1 &amp;lt; x &amp;amp;&amp;amp; x &amp;lt;= 10)&lt;/PRE&gt;&lt;P&gt;checks if "1 &amp;lt; x" &lt;EM&gt;and&lt;/EM&gt; "x &amp;lt;= 10" are both true at the same time, which means that x is between 1 (exclusive) and 10 (inclusive).&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 16:19:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-if-else-condition-and-a-proper-use-of-brackets/m-p/13550186#M55028</guid>
      <dc:creator>mischa_spelt</dc:creator>
      <dc:date>2020-03-27T16:19:03Z</dc:date>
    </item>
  </channel>
</rss>

