<?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 [resolved] If statement in tJavaRow in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-If-statement-in-tJavaRow/m-p/2260347#M41503</link>
    <description>I have put a tJavarow component in my job to process some context data relating to a file being passed along the job. 
&lt;BR /&gt;the tJavaRow contains the following code -: 
&lt;BR /&gt;---------------------------------------------------------------------------------------------------------------------- 
&lt;BR /&gt;context.EDB_Data = "-"; 
&lt;BR /&gt;System.out.println(context.EDB_Mask); 
&lt;BR /&gt;System.out.println(context.EDB_PDF_SIZE); 
&lt;BR /&gt; if (context.EDB_Mask == "R900S") { 
&lt;BR /&gt; System.out.println(context.EDB_Mask); 
&lt;BR /&gt; if (context.EDB_PDF_SIZE &amp;gt; 5000) 
&lt;BR /&gt; System.out.println("Contents"); 
&lt;BR /&gt; else 
&lt;BR /&gt; System.out.println("NO Contents"); 
&lt;BR /&gt; } 
&lt;BR /&gt;------------------------------------------------------------------------------------------------------------------------- 
&lt;BR /&gt;the output was as follows -: 
&lt;BR /&gt;R900S 
&lt;BR /&gt;28575 
&lt;BR /&gt;R0111 
&lt;BR /&gt;3361 
&lt;BR /&gt;R0110 
&lt;BR /&gt;13552 
&lt;BR /&gt;R0120 
&lt;BR /&gt;13070 
&lt;BR /&gt;I was was expecting after 28575 the following 
&lt;BR /&gt;R900S to be printed again as it matched the IF statement 
&lt;BR /&gt;Contents to be printed as the context size variable is greater than 5000 
&lt;BR /&gt;This has not worked and I need some Java help in getting the code correct 
&lt;BR /&gt;It should be noted that I need a total of 9 tests for the MASK in context , I should be able to clone a working solution as long as each main if is self contained.</description>
    <pubDate>Sat, 16 Nov 2024 13:11:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T13:11:36Z</dc:date>
    <item>
      <title>[resolved] If statement in tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-If-statement-in-tJavaRow/m-p/2260347#M41503</link>
      <description>I have put a tJavarow component in my job to process some context data relating to a file being passed along the job. 
&lt;BR /&gt;the tJavaRow contains the following code -: 
&lt;BR /&gt;---------------------------------------------------------------------------------------------------------------------- 
&lt;BR /&gt;context.EDB_Data = "-"; 
&lt;BR /&gt;System.out.println(context.EDB_Mask); 
&lt;BR /&gt;System.out.println(context.EDB_PDF_SIZE); 
&lt;BR /&gt; if (context.EDB_Mask == "R900S") { 
&lt;BR /&gt; System.out.println(context.EDB_Mask); 
&lt;BR /&gt; if (context.EDB_PDF_SIZE &amp;gt; 5000) 
&lt;BR /&gt; System.out.println("Contents"); 
&lt;BR /&gt; else 
&lt;BR /&gt; System.out.println("NO Contents"); 
&lt;BR /&gt; } 
&lt;BR /&gt;------------------------------------------------------------------------------------------------------------------------- 
&lt;BR /&gt;the output was as follows -: 
&lt;BR /&gt;R900S 
&lt;BR /&gt;28575 
&lt;BR /&gt;R0111 
&lt;BR /&gt;3361 
&lt;BR /&gt;R0110 
&lt;BR /&gt;13552 
&lt;BR /&gt;R0120 
&lt;BR /&gt;13070 
&lt;BR /&gt;I was was expecting after 28575 the following 
&lt;BR /&gt;R900S to be printed again as it matched the IF statement 
&lt;BR /&gt;Contents to be printed as the context size variable is greater than 5000 
&lt;BR /&gt;This has not worked and I need some Java help in getting the code correct 
&lt;BR /&gt;It should be noted that I need a total of 9 tests for the MASK in context , I should be able to clone a working solution as long as each main if is self contained.</description>
      <pubDate>Sat, 16 Nov 2024 13:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-If-statement-in-tJavaRow/m-p/2260347#M41503</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] If statement in tJavaRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-If-statement-in-tJavaRow/m-p/2260348#M41504</link>
      <description>I fixed it &lt;BR /&gt;       if (context.EDB_Mask == "R900S")  ..................   should be&lt;BR /&gt;       if (context.EDB_Mask.equals("R900S"))</description>
      <pubDate>Thu, 02 Dec 2010 11:01:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-If-statement-in-tJavaRow/m-p/2260348#M41504</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-02T11:01:14Z</dc:date>
    </item>
  </channel>
</rss>

