<?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 Name == Main? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Name-Main/m-p/616928#M81652</link>
    <description>Is there a similar syntax in jmp that replicates the behavior of if __name__ == __main__ of python?</description>
    <pubDate>Fri, 09 Jun 2023 16:06:27 GMT</pubDate>
    <dc:creator>BKMitchell</dc:creator>
    <dc:date>2023-06-09T16:06:27Z</dc:date>
    <item>
      <title>Name == Main?</title>
      <link>https://community.jmp.com/t5/Discussions/Name-Main/m-p/616928#M81652</link>
      <description>Is there a similar syntax in jmp that replicates the behavior of if __name__ == __main__ of python?</description>
      <pubDate>Fri, 09 Jun 2023 16:06:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Name-Main/m-p/616928#M81652</guid>
      <dc:creator>BKMitchell</dc:creator>
      <dc:date>2023-06-09T16:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Name == Main?</title>
      <link>https://community.jmp.com/t5/Discussions/Name-Main/m-p/616967#M81656</link>
      <description>&lt;P&gt;Not exactly. And I'm not enough of a Python user to know all the reasons for using that statement. But I have two answers.&lt;/P&gt;
&lt;P&gt;1. if you want to know what source file is current in a nest of includes(...) you can retrieve the stack of filenames in a list. See &lt;EM&gt;Include File List()&lt;/EM&gt; .&lt;/P&gt;
&lt;P&gt;2. if you are trying to build a multiple file project, I found an include pattern that worked for me. The problem I solved was having multiple tabs open in the project editor, then running (^R) whatever file I just edited, which would not be the main file. See&amp;nbsp;&lt;LI-MESSAGE title="Using a Project for a Project" uid="381632" url="https://community.jmp.com/t5/Uncharted/Using-a-Project-for-a-Project/m-p/381632#U381632" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 14:57:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Name-Main/m-p/616967#M81656</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-03-27T14:57:09Z</dc:date>
    </item>
  </channel>
</rss>

