title: Bash if doesn't match the content
body: <p>My code:</p>
  
  <pre><code>#!/bin/bash
  content="My sms content"
  nomer="My Phone number"
  if [[ -n "$content" &amp;&amp; -n "$nomer" ]]; then
  echo "it passes the first filter..."
      if [ "$(echo $content| awk '{print tolower($0)}')" = "My sms content" ]; then
      echo "Yes it matches the content"
      else
      echo "the variable doesn't match the content"
      fi
  fi
  </code></pre>
  
  <p>It displays nothing when I run the code. What I want is that it displays <code>Yes it matches the content</code> How do I do that?</p>
  
  <p><strong>UPDATE</strong> as @BlueMoon answer I updated my code but it still says <code>the variable doesn't match the content</code> 
  I want it to match the content</p>