Is this explanation of ternary operator valid? : <p><strong>Question:</strong></p>

<ul>
<li>I want to know if this explanation of the ternary operator is valid.</li>
</ul>

<blockquote>
  <p>var = (condition) ? set value if condition one : set value of condition two;</p>
</blockquote>

<p>If the condition is something than the value of the variable will be something. If it's not the value will be different. Basically assign a variable with a value based on a condition. Is this explanation valid? I need to know this if I'm understanding this correctly.</p>

<p><strong>Code:</strong></p>

<pre><code>#include &lt;iostream&gt;

bool maxEntries()
{
    int entries = 11;
    bool users = (entries &gt; 10) ? true : false;
    return users;
}

int main(int argc, const char* argv[])
{

    if(maxEntries())
    {
        std::cout &lt;&lt; "Entries are greater than 10." &lt;&lt; std::endl;
    } else {
        std::cout &lt;&lt; "Entries are less than 10." &lt;&lt; std::endl;
    }

    return 0;
} 

. 
</code></pre>
