print(i)
    i -= 1
}</code></pre>

<p>The correct approach in Swift is to compare the <code>i</code> value with zero in the
<code>while</code> statement.</p>

<pre><code class="language-swift">while i != 0 {
    print(i)
    i -= 1
}</code></pre>

<h1>Using Imported Boolean values</h1>

<p>The C <code>bool</code> and <code>Boolean</code> types and the Objective-C <code>BOOL</code> type are all
bridged into Swift as <code>Bool</code>. The single <code>Bool</code> type in Swift guarantees
that functions, met