title: Smalltalk - Compare two strings for equality
body: <p>I am trying to compare two strings in Smalltalk, but I seem to be doing something wrong.</p>
  
  <p>I keep getting this error:</p>
  
  <p>Unhandled Exception: Non-boolean receiver. Proceed for truth.</p>
  
  <pre><code>stringOne := 'hello'.
  stringTwo := 'hello'.
  myNumber := 10.
  
  [stringOne = stringTwo ] ifTrue:[
     myNumber := 20].
  </code></pre>
  
  <p>Any idea what I'm doing wrong?</p>