<?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: Code in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/code/m-p/13560072#M62735</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;It is a ternary operator. See &lt;A href="https://docs.flexsim.com/en/21.2/Reference/CodingInFlexSim/WritingLogic/#flow"&gt;Writing Logic in FlexSim&lt;/A&gt; and &lt;A href="https://en.wikipedia.org/wiki/%3F:"&gt;?: - Wikipedia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It is a shortcut way to write an if/else statement in one line.&lt;/P&gt;&lt;P&gt;In that code, if token.Shift == 1, then it will return token.Day + 1, otherwise it will return token.Day.&lt;/P&gt;&lt;P&gt;/**/ and /**direct*/ are commentary markup statements used by the popup GUI.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 30 Aug 2021 20:00:12 GMT</pubDate>
    <dc:creator>philboboADSK</dc:creator>
    <dc:date>2021-08-30T20:00:12Z</dc:date>
    <item>
      <title>Code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code/m-p/13560071#M62734</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.2.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;DIV class="fr-view clearfix"&gt;
  &lt;P&gt;i was going through one model on Time table and i saw a code there, which i dont know how to read in FlexScript. can someone elaborate what does the following code does and and what is the meaning of keywords and symbols used in it. &lt;/P&gt;
  &lt;P&gt;return /**/token.Shift == 1 ? token.Day + 1 : token.Day/**direct*/;&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;what is the meaning of "?" and ":" in the above code. &lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Aug 2021 19:57:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code/m-p/13560071#M62734</guid>
      <dc:creator>10Dulkar</dc:creator>
      <dc:date>2021-08-30T19:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code/m-p/13560072#M62735</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;It is a ternary operator. See &lt;A href="https://docs.flexsim.com/en/21.2/Reference/CodingInFlexSim/WritingLogic/#flow"&gt;Writing Logic in FlexSim&lt;/A&gt; and &lt;A href="https://en.wikipedia.org/wiki/%3F:"&gt;?: - Wikipedia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It is a shortcut way to write an if/else statement in one line.&lt;/P&gt;&lt;P&gt;In that code, if token.Shift == 1, then it will return token.Day + 1, otherwise it will return token.Day.&lt;/P&gt;&lt;P&gt;/**/ and /**direct*/ are commentary markup statements used by the popup GUI.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Aug 2021 20:00:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code/m-p/13560072#M62735</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2021-08-30T20:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/code/m-p/13560073#M62736</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 this is great. thank you. I will check out the writing flexsim logic with more attention. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; 
&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Aug 2021 20:07:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/code/m-p/13560073#M62736</guid>
      <dc:creator>10Dulkar</dc:creator>
      <dc:date>2021-08-30T20:07:43Z</dc:date>
    </item>
  </channel>
</rss>

