title: how to compare strings in prolog
body: <p>I want to write a program in prolog that compares two strings or string lists. I want achieve the following: </p>
  
  <pre><code>if StringList A == StringList B
     {
       do this
     }
  else
     do something else
  </code></pre>
  
  <p>How can I achieve this?</p>