<?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 If Else Statement in Javascript does not run in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/if-else-statement-in-javascript-does-not-run/m-p/90269#M61457</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a problem: I'm trying to use if else statement into a script, but alfresco execute both options:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if (UserSpace== null)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var One = AnotherSpace.createFile("One.html");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;else &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var Two = UserSpace.createFile("Two.html");&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;} &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The result is that "One.html" and "Two.html" file are created. Why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance. Raquel.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jul 2007 06:51:19 GMT</pubDate>
    <dc:creator>raquelcasaus</dc:creator>
    <dc:date>2007-07-03T06:51:19Z</dc:date>
    <item>
      <title>If Else Statement in Javascript does not run</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/if-else-statement-in-javascript-does-not-run/m-p/90269#M61457</link>
      <description>Hi, all,I have a problem: I'm trying to use if else statement into a script, but alfresco execute both options:if (UserSpace== null){var One = AnotherSpace.createFile("One.html");}else {var Two = UserSpace.createFile("Two.html");&amp;nbsp;&amp;nbsp;&amp;nbsp;} The result is that "One.html" and "Two.html" file are created. Why</description>
      <pubDate>Tue, 03 Jul 2007 06:51:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/if-else-statement-in-javascript-does-not-run/m-p/90269#M61457</guid>
      <dc:creator>raquelcasaus</dc:creator>
      <dc:date>2007-07-03T06:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: If Else Statement in Javascript does not run</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/if-else-statement-in-javascript-does-not-run/m-p/90270#M61458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that now it's running, i don't know why. I only rewrite the code with another variable names,… but the structure is the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you. Raquel.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 07:27:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/if-else-statement-in-javascript-does-not-run/m-p/90270#M61458</guid>
      <dc:creator>raquelcasaus</dc:creator>
      <dc:date>2007-07-03T07:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: If Else Statement in Javascript does not run</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/if-else-statement-in-javascript-does-not-run/m-p/90271#M61459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If Else statement runs sometimes, i don't know what is the problem. The same script is launched two times, at the first time it runs, at the second one, no. Is ther a poltergeist in Alfresco? I think it's a big bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards. Raquel.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 09:14:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/if-else-statement-in-javascript-does-not-run/m-p/90271#M61459</guid>
      <dc:creator>raquelcasaus</dc:creator>
      <dc:date>2007-07-03T09:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: If Else Statement in Javascript does not run</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/if-else-statement-in-javascript-does-not-run/m-p/90272#M61460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would be very surprised if there was an issue with if/else in javascript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One thing you can try is to use undefined instead of null (but be careful which equality operator you use).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Properties:undefined" rel="nofollow noopener noreferrer"&gt;http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Properties:undefined&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 09:32:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/if-else-statement-in-javascript-does-not-run/m-p/90272#M61460</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-07-03T09:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: If Else Statement in Javascript does not run</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/if-else-statement-in-javascript-does-not-run/m-p/90273#M61461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that i found my error: sometimes the object is use was a space and sometimes a document, so that was the problem. I thought that i will become crazy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you a lot. Raquel.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 10:10:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/if-else-statement-in-javascript-does-not-run/m-p/90273#M61461</guid>
      <dc:creator>raquelcasaus</dc:creator>
      <dc:date>2007-07-03T10:10:24Z</dc:date>
    </item>
  </channel>
</rss>

