<?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 &amp; Go to statement in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/If-Go-to-statement/m-p/7068#M7062</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;JSL does not have a GOTO statement.&amp;nbsp; You can do what you want with a WHILE loop, CONTINUE and BREAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example of what you want to do would be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jul 2013 14:12:49 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2013-07-02T14:12:49Z</dc:date>
    <item>
      <title>If &amp; Go to statement</title>
      <link>https://community.jmp.com/t5/Discussions/If-Go-to-statement/m-p/7066#M7060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to write a script such that if a particular condition is true move ahead and if false then move back to a particular label in the script. how to do that. please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 21:36:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/If-Go-to-statement/m-p/7066#M7060</guid>
      <dc:creator>kaushik</dc:creator>
      <dc:date>2013-07-01T21:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: If &amp; Go to statement</title>
      <link>https://community.jmp.com/t5/Discussions/If-Go-to-statement/m-p/7067#M7061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Please share an example or sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2013 07:10:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/If-Go-to-statement/m-p/7067#M7061</guid>
      <dc:creator>sunilzood</dc:creator>
      <dc:date>2013-07-02T07:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: If &amp; Go to statement</title>
      <link>https://community.jmp.com/t5/Discussions/If-Go-to-statement/m-p/7068#M7062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;JSL does not have a GOTO statement.&amp;nbsp; You can do what you want with a WHILE loop, CONTINUE and BREAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example of what you want to do would be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2013 14:12:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/If-Go-to-statement/m-p/7068#M7062</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2013-07-02T14:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: If &amp; Go to statement</title>
      <link>https://community.jmp.com/t5/Discussions/If-Go-to-statement/m-p/7069#M7063</link>
      <description>&lt;P&gt;This is what i did and it works&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;a = 0;
tableExpr = Expr(  ) ;
If( a &amp;gt;= 1, //Condition
      Print( "Condition is true." )  //Then
,
      tableExpr  //Else
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If condition is true then proceed else it will execute set of expressions defined earlier in the script.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 14:08:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/If-Go-to-statement/m-p/7069#M7063</guid>
      <dc:creator>kaushik</dc:creator>
      <dc:date>2017-07-14T14:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: If &amp; Go to statement</title>
      <link>https://community.jmp.com/t5/Discussions/If-Go-to-statement/m-p/40006#M23416</link>
      <description>&lt;P&gt;does it mean the jmp script has to be ran from beginning to end? Not like other language can skip few blocks/lines or go back to certain places prior to if clause?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2017 20:30:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/If-Go-to-statement/m-p/40006#M23416</guid>
      <dc:creator>robust1972</dc:creator>
      <dc:date>2017-06-05T20:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: If &amp; Go to statement</title>
      <link>https://community.jmp.com/t5/Discussions/If-Go-to-statement/m-p/40310#M23606</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4550"&gt;@pmroz&lt;/a&gt;&amp;nbsp;points out there are many &lt;A href="http://www.jmp.com/support/help/13-2/Conditional_and_Logical_Functions.shtml#2495905" target="_self"&gt;Conditional functions&lt;/A&gt;&amp;nbsp;that can be used to control the flow of execution of a program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can post an example of the problem you're trying to solve with GOTO perhaps we can show you how to tackle it.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 05:05:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/If-Go-to-statement/m-p/40310#M23606</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2017-12-01T05:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: If &amp; Go to statement</title>
      <link>https://community.jmp.com/t5/Discussions/If-Go-to-statement/m-p/41969#M24482</link>
      <description>&lt;P&gt;I guess you dont want to wrap entire jsl code in if or while condition. instead whenever exception occurs it should skip a block. well, since no goto exist in jsl, if you work through function here is a work around. use a dummy for loop and conditional break inside a function.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;for(i=1,i&amp;lt;=1,i++,
  bar=12;
  break();
  bar=15;
);
show(bar);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jul 2017 14:09:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/If-Go-to-statement/m-p/41969#M24482</guid>
      <dc:creator>ram</dc:creator>
      <dc:date>2017-07-14T14:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: If &amp; Go to statement</title>
      <link>https://community.jmp.com/t5/Discussions/If-Go-to-statement/m-p/41971#M24483</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="goto.PNG" style="width: 752px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/6775iE1F6C286EE34CE5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="goto.PNG" alt="goto.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;source: xkcd.com&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 05:29:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/If-Go-to-statement/m-p/41971#M24483</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2017-07-14T05:29:04Z</dc:date>
    </item>
  </channel>
</rss>

