<?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: Introducing &amp;quot;&amp;quot; inside string in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Introducing-double-quotes-quot-quot-inside-string-in-JSL-JMP/m-p/339461#M58766</link>
    <description>&lt;P&gt;Where do you want to go with your string?&lt;/P&gt;&lt;P&gt;Inside JSL the escaped double quote (\!") is needed to let JMP know where the string starts and ends.&lt;/P&gt;&lt;P&gt;But if you display that string in a window, or elsewhere, it is like you desired.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
clear log();

my_string = "\[Hello
""
World!]\";

show(my_string);

New Window( "String output window",
Text Box( my_string);
);

// Expected
// "Hello
// ""
// World!"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 05 Dec 2020 17:30:11 GMT</pubDate>
    <dc:creator>Georg</dc:creator>
    <dc:date>2020-12-05T17:30:11Z</dc:date>
    <item>
      <title>Introducing double quotes "" inside string in JSL (JMP)</title>
      <link>https://community.jmp.com/t5/Discussions/Introducing-double-quotes-quot-quot-inside-string-in-JSL-JMP/m-p/339423#M58765</link>
      <description>&lt;P&gt;I am not sure how to do the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;my_string = "Hello
\!"\!"
World!";

my_string = substitute(my_string , "\!"", """"); // This returns an error

// Expected
// "Hello
// ""
// World!"&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 21:59:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Introducing-double-quotes-quot-quot-inside-string-in-JSL-JMP/m-p/339423#M58765</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2023-06-09T21:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Introducing "" inside string</title>
      <link>https://community.jmp.com/t5/Discussions/Introducing-double-quotes-quot-quot-inside-string-in-JSL-JMP/m-p/339461#M58766</link>
      <description>&lt;P&gt;Where do you want to go with your string?&lt;/P&gt;&lt;P&gt;Inside JSL the escaped double quote (\!") is needed to let JMP know where the string starts and ends.&lt;/P&gt;&lt;P&gt;But if you display that string in a window, or elsewhere, it is like you desired.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
clear log();

my_string = "\[Hello
""
World!]\";

show(my_string);

New Window( "String output window",
Text Box( my_string);
);

// Expected
// "Hello
// ""
// World!"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 17:30:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Introducing-double-quotes-quot-quot-inside-string-in-JSL-JMP/m-p/339461#M58766</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2020-12-05T17:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Introducing "" inside string</title>
      <link>https://community.jmp.com/t5/Discussions/Introducing-double-quotes-quot-quot-inside-string-in-JSL-JMP/m-p/339462#M58767</link>
      <description>&lt;P&gt;sorry, I forgot,&lt;/P&gt;&lt;P&gt;and you can use function write, it does what you want.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;write(my_string);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 05 Dec 2020 17:39:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Introducing-double-quotes-quot-quot-inside-string-in-JSL-JMP/m-p/339462#M58767</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2020-12-05T17:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Introducing "" inside string</title>
      <link>https://community.jmp.com/t5/Discussions/Introducing-double-quotes-quot-quot-inside-string-in-JSL-JMP/m-p/339482#M58768</link>
      <description>&lt;P&gt;Yes, write(...) is much less confusing than print(...). Print adds quotation marks that make print pretty useless for printing strings, unless you plan to copy/paste them from the log back into more JSL, in which case all the escaping between the added quotation marks is useful.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 18:25:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Introducing-double-quotes-quot-quot-inside-string-in-JSL-JMP/m-p/339482#M58768</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-12-05T18:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Introducing "" inside string</title>
      <link>https://community.jmp.com/t5/Discussions/Introducing-double-quotes-quot-quot-inside-string-in-JSL-JMP/m-p/339507#M58773</link>
      <description>The idea was to write this string so JMP autogenerates a txt file.&lt;BR /&gt;</description>
      <pubDate>Sun, 06 Dec 2020 10:16:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Introducing-double-quotes-quot-quot-inside-string-in-JSL-JMP/m-p/339507#M58773</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2020-12-06T10:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Introducing "" inside string</title>
      <link>https://community.jmp.com/t5/Discussions/Introducing-double-quotes-quot-quot-inside-string-in-JSL-JMP/m-p/339931#M58823</link>
      <description>&lt;P&gt;If I need double quotes inside a string I use the escape sequence \[your-string-goes-here]\.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;my_string = "\[Hello
""
World!]\";

write(my_string);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;PRE&gt;Hello
""
World!&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Dec 2020 18:07:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Introducing-double-quotes-quot-quot-inside-string-in-JSL-JMP/m-p/339931#M58823</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2020-12-07T18:07:43Z</dc:date>
    </item>
  </channel>
</rss>

