<?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: multiple operators AND / OR in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/multiple-operators-and-or/qaa-p/533076#M108705</link>
    <description>&lt;P&gt;super.....works nice&lt;/P&gt;
  &lt;P&gt;I already found and used &lt;STRONG&gt;if&lt;/STRONG&gt; + multiple times &lt;STRONG&gt;else if&lt;/STRONG&gt; instead of the &lt;STRONG&gt;OR &lt;/STRONG&gt;, but Your style seems to be shorter record, so I will use it.&lt;/P&gt;
  &lt;P&gt;Thank You&lt;/P&gt;</description>
    <pubDate>Mon, 02 Oct 2017 10:37:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2017-10-02T10:37:16Z</dc:date>
    <item>
      <title>multiple operators AND / OR</title>
      <link>https://community.sap.com/t5/technology-q-a/multiple-operators-and-or/qaq-p/533074</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;Could somebody explain me how to use multiple operators AND vs OR in this case:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;Global StringVar Type ;
If UBound(myString)&amp;gt;=1
Then Type:= ToText(myString[1]);
Type := If Type = "F1A" Or Type = "F1E" Or Type = "F6A" Or Type = "F6E" Then "F";
Type := If Type = "G1A" Or Type = "G1E" Or Type = "G6A" Or Type = "G6E" Then "G";

Global StringVar Design ;
If UBound(myString)&amp;gt;=2
Then Design:= ToText(myString[2]);
Design := Replace (Design,"I","");
Design := If (Design = "20") and (Type = "F") Or (Design = "21") and (Type = "F") Or (Design = "22") and (Type = "F") Then "2" ;
Design
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Sep 2017 16:15:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multiple-operators-and-or/qaq-p/533074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-09-27T16:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: multiple operators AND / OR</title>
      <link>https://community.sap.com/t5/technology-q-a/multiple-operators-and-or/qaa-p/533075#M108704</link>
      <description>&lt;P&gt;Hi Zdenek,&lt;/P&gt;
  &lt;P&gt;Please try:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;Global StringVar Type ;
If UBound(myString)&amp;gt;=1
Then Type:= ToText(myString[1]);
Type := If Type IN ["F1A","F1E","F6A","F6E"] Then "F" Else If Type IN ["G1A","G1E","G6A","G6E"] Then "G";
Global StringVar Design ;
If UBound(myString)&amp;gt;=2
Then Design:= ToText(myString[2]);
Design := Replace (Design,"I","");
Design := If (Design = "20" and Type = "F") Or (Design = "21" and Type = "F") Or (Design = "22" and Type = "F") Then "2" ;
Design&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;STRONG&gt;-Abhilash&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 17:29:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multiple-operators-and-or/qaa-p/533075#M108704</guid>
      <dc:creator>abhilash_kumar</dc:creator>
      <dc:date>2017-09-27T17:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: multiple operators AND / OR</title>
      <link>https://community.sap.com/t5/technology-q-a/multiple-operators-and-or/qaa-p/533076#M108705</link>
      <description>&lt;P&gt;super.....works nice&lt;/P&gt;
  &lt;P&gt;I already found and used &lt;STRONG&gt;if&lt;/STRONG&gt; + multiple times &lt;STRONG&gt;else if&lt;/STRONG&gt; instead of the &lt;STRONG&gt;OR &lt;/STRONG&gt;, but Your style seems to be shorter record, so I will use it.&lt;/P&gt;
  &lt;P&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 10:37:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multiple-operators-and-or/qaa-p/533076#M108705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-10-02T10:37:16Z</dc:date>
    </item>
  </channel>
</rss>

