<?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>Question Re: Nested if else statement crystal report in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/nested-if-else-statement-crystal-report/qaa-p/12196191#M4562937</link>
    <description>&lt;P&gt;Thank you, &lt;/P&gt;&lt;P&gt;I'll try this one as well. Always good to learn multiple ways to solve a problem! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
    <pubDate>Fri, 03 Apr 2020 07:21:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2020-04-03T07:21:35Z</dc:date>
    <item>
      <title>Nested if else statement crystal report</title>
      <link>https://community.sap.com/t5/technology-q-a/nested-if-else-statement-crystal-report/qaq-p/12196185</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;
  &lt;P&gt;I'm quite new to Crystal Reports and I'm stuck, hoping someone here can help me. &lt;/P&gt;
  &lt;P&gt;I have a report that where I want to print the address to where we shipped our orders. I have four different fields where there can be information about shipping address. &lt;/P&gt;
  &lt;P&gt;ordlevadr2 (first prio) - if there is data in this field always use that one &lt;/P&gt;
  &lt;P&gt;ftgpostadr5 (second prio) - if ordlevadr2 is empty look if there is any value here, use this one &lt;/P&gt;
  &lt;P&gt;ftgpostadr2 (third prio) - if ordlevard2 and ftgpostadr5 is empty and there is a value in this field, use this one&lt;/P&gt;
  &lt;P&gt;ftgpostadr4 (last prio) - if ordlevadr2, ftgpostadr5 and ftgpostadr2 is empty use this one &lt;/P&gt;
  &lt;P&gt;if all of the fields are empty set text 'none'&lt;/P&gt;
  &lt;P&gt;I have tried with below code, but I can't get it right&lt;/P&gt;
  &lt;P&gt;if ISNULL({q_import_tableu;1.ordlevadr2}) then ( if ISNULL({q_import_tableu;1.ftgpostadr2}) then {q_import_tableu;1.ftgpostadr5} else if ISNULL({q_import_tableu;1.ftgpostadr5}) then {q_import_tableu;1.ftgpostadr2} else if ISNULL({q_import_tableu;1.ftgpostadr4}) then {q_import_tableu;1.ftgpostadr5} else 'none'; ) else {q_import_tableu;1.ordlevadr2}+' '+{q_import_tableu;1.ordlevadr3}&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 21:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/nested-if-else-statement-crystal-report/qaq-p/12196185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-04-02T21:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if else statement crystal report</title>
      <link>https://community.sap.com/t5/technology-q-a/nested-if-else-statement-crystal-report/qaa-p/12196186#M4562932</link>
      <description>&lt;P&gt;Thank
you for visiting SAP Community to get answers to your questions. Since you're
asking a question here for the first time, I recommend that you familiarize
yourself with &lt;A href="https://community.sap.com/resources/questions-and-answers" target="test_blank"&gt;https://community.sap.com/resources/questions-and-answers&lt;/A&gt; (if you
haven't already), as it provides tips for preparing questions that draw
responses from our members.&lt;/P&gt;&lt;P&gt;Should
you wish, you can revise your question by selecting Actions, then Edit
(although once someone answers your question, you'll lose the ability to edit
the question -- but if that happens, you can leave more details in a comment).
While editing, you can also use the "insert code" button to make this
portion of the question easier to read. You'll find that button in the question
toolbar -- last selection on the right.&lt;/P&gt;&lt;P&gt;Finally,
if you're hoping to connect with readers, please consider adding a picture to
your profile. Here's how you do it:
&lt;A href="https://www.youtube.com/watch?v=F5JdUbyjfMA&amp;amp;list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS" target="test_blank"&gt;https://www.youtube.com/watch?v=F5JdUbyjfMA&amp;amp;list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS&lt;/A&gt;.
By personalizing your profile with a photo of you, you encourage readers to
respond.&lt;/P&gt;&lt;P&gt;Kind
regards,&lt;/P&gt;&lt;P&gt;--Jerry&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 22:03:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/nested-if-else-statement-crystal-report/qaa-p/12196186#M4562932</guid>
      <dc:creator>jerryjanda</dc:creator>
      <dc:date>2020-04-02T22:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if else statement crystal report</title>
      <link>https://community.sap.com/t5/technology-q-a/nested-if-else-statement-crystal-report/qaa-p/12196187#M4562933</link>
      <description>&lt;P&gt;What is not working right?  Are you getting an error?&lt;/P&gt;&lt;P&gt;-Dell&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 22:26:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/nested-if-else-statement-crystal-report/qaa-p/12196187#M4562933</guid>
      <dc:creator>DellSC</dc:creator>
      <dc:date>2020-04-02T22:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if else statement crystal report</title>
      <link>https://community.sap.com/t5/technology-q-a/nested-if-else-statement-crystal-report/qaa-p/12196188#M4562934</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;if not (ISNULL({q_import_tableu;1.ordlevadr2}) or ({q_import_tableu;1.ordlevadr2}="") &lt;/P&gt;&lt;P&gt; then&lt;/P&gt;&lt;P&gt; 
{q_import_tableu;1.ordlevadr2}&lt;/P&gt;&lt;P&gt;
else&lt;/P&gt;&lt;P&gt;
if not (ISNULL({q_import_tableu;1.ftgpostadr5}) or ({q_import_tableu;1.ftgpostadr5}="")&lt;/P&gt;&lt;P&gt;
then&lt;/P&gt;&lt;P&gt; 
{q_import_tableu;1.ftgpostadr5} &lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;
if not (ISNULL({q_import_tableu;1.ftgpostadr2}) or ({q_import_tableu;1.ftgpostadr2}="")&lt;/P&gt;&lt;P&gt;
then&lt;/P&gt;&lt;P&gt; 
q_import_tableu;1.ftgpostadr2} &lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;
if not (ISNULL({q_import_tableu;1.ftgpostadr4}) or ({q_import_tableu;1.ftgpostadr4}="")&lt;/P&gt;&lt;P&gt;
then&lt;/P&gt;&lt;P&gt; 
{q_import_tableu;1.ftgpostadr4}&lt;/P&gt;&lt;P&gt;
else
"none"&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 22:35:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/nested-if-else-statement-crystal-report/qaa-p/12196188#M4562934</guid>
      <dc:creator>vitaly_izmaylov</dc:creator>
      <dc:date>2020-04-02T22:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if else statement crystal report</title>
      <link>https://community.sap.com/t5/technology-q-a/nested-if-else-statement-crystal-report/qaa-p/12196189#M4562935</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can do in another way, useing IIF statement&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IIF ( conditon1 ," " ,  
      condition2, " " ,
      condition3 , '' , 
      condition4 , "", 
      condition5 , "" , nonevalue) ).
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Apr 2020 05:43:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/nested-if-else-statement-crystal-report/qaa-p/12196189#M4562935</guid>
      <dc:creator>venkateswaran_k</dc:creator>
      <dc:date>2020-04-03T05:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if else statement crystal report</title>
      <link>https://community.sap.com/t5/technology-q-a/nested-if-else-statement-crystal-report/qaa-p/12196190#M4562936</link>
      <description>&lt;P&gt;Thank you very much!! &lt;/P&gt;&lt;P&gt;It's working and I get the correct addresses that I want in the field &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 07:21:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/nested-if-else-statement-crystal-report/qaa-p/12196190#M4562936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-04-03T07:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if else statement crystal report</title>
      <link>https://community.sap.com/t5/technology-q-a/nested-if-else-statement-crystal-report/qaa-p/12196191#M4562937</link>
      <description>&lt;P&gt;Thank you, &lt;/P&gt;&lt;P&gt;I'll try this one as well. Always good to learn multiple ways to solve a problem! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 07:21:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/nested-if-else-statement-crystal-report/qaa-p/12196191#M4562937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-04-03T07:21:35Z</dc:date>
    </item>
  </channel>
</rss>

