<?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: Compare Memory with user Input in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/compare-memory-with-user-input/qaa-p/12598488#M4724886</link>
    <description>&lt;P&gt;Thanks. I used your scripting approach. And used the #compare...&lt;/P&gt;</description>
    <pubDate>Thu, 20 Oct 2022 21:36:20 GMT</pubDate>
    <dc:creator>openrico</dc:creator>
    <dc:date>2022-10-20T21:36:20Z</dc:date>
    <item>
      <title>Compare Memory with user Input</title>
      <link>https://community.sap.com/t5/technology-q-a/compare-memory-with-user-input/qaq-p/12598486</link>
      <description>&lt;P&gt;Dear Professionals,&lt;/P&gt;
  &lt;P&gt;I have the following usecase: In an action, I ask an user for an orderID. With this orderID I make a webservice call and get some information(e.g. vendorID) which I store in memory. &lt;/P&gt;
  &lt;P&gt;Now the question: I want to ask the customer about his vendorID and compare this input with the vendorID stored in the memory to make further actions.&lt;/P&gt;
  &lt;P&gt;How can I achieve this?&lt;/P&gt;
  &lt;P&gt;Thank you very much.&lt;/P&gt;
  &lt;P&gt;Greetings &lt;/P&gt;
  &lt;P&gt;Enrico &lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 18:58:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/compare-memory-with-user-input/qaq-p/12598486</guid>
      <dc:creator>openrico</dc:creator>
      <dc:date>2022-10-20T18:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Memory with user Input</title>
      <link>https://community.sap.com/t5/technology-q-a/compare-memory-with-user-input/qaa-p/12598487#M4724885</link>
      <description>&lt;P&gt;Hey Enrico,&lt;/P&gt;&lt;P&gt;It depends on what you want to accomplish - there are a few options:&lt;/P&gt;&lt;P&gt;1. If you want to only accept the vendorID that matches the one saved in memory, you could use a validator during the requirement filling step (how I assume you are asking the user for the vendorID)&lt;/P&gt;&lt;P&gt;2. In skill action conditions, you can define something like &lt;EM&gt;#vendorID.raw comparison_opporator {{memory.saved_vendorID}} &lt;/EM&gt;and then execute an action based on the comparison.&lt;/P&gt;&lt;P&gt;3. Using scripting syntax you can define a wide variety of comparisons/actions based on the comparison of the IDs. You can find more info &lt;A href="https://help.sap.com/docs/SAP_CONVERSATIONAL_AI/a4522a393d2b4643812b7caadfe90c18/b4f08a9a66434327a405b6934880445c.html?q=scripting%20syntax"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;If you describe your use case in depth, I am happy to discuss what might be the best approach for you.&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 19:51:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/compare-memory-with-user-input/qaa-p/12598487#M4724885</guid>
      <dc:creator>timothy_janssen</dc:creator>
      <dc:date>2022-10-20T19:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Memory with user Input</title>
      <link>https://community.sap.com/t5/technology-q-a/compare-memory-with-user-input/qaa-p/12598488#M4724886</link>
      <description>&lt;P&gt;Thanks. I used your scripting approach. And used the #compare...&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 21:36:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/compare-memory-with-user-input/qaa-p/12598488#M4724886</guid>
      <dc:creator>openrico</dc:creator>
      <dc:date>2022-10-20T21:36:20Z</dc:date>
    </item>
  </channel>
</rss>

