title: Nested if else in Crystal Reports
body: <p>I want to nest if-else statements in Crystal Reports, but I don't know the necessary syntax. How can I arrange something like this:</p>
  
  <pre><code>if table1.id &lt;&gt; "1" then
     if table1.name &lt;&gt; "a" then
        var1 := "Hello"
     else
        var1 := "Hi"
  else
     var1 := "Bye"
  </code></pre>