<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Ternary conditional operator - Page 4 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Ternary_conditional_operator&amp;p=3">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Ternary_conditional_operator&amp;p=5">3.Next</a>
</p>

<p><big>Patterns</big></p>
<p><big>Assignment</big></p>
<p>The value of the operator can be assigned to a variable. For a weakly typed language, the <a href="page.php?w=data_type">data type</a> of the selected value may determine the type of the assigned value. For a strongly typed language, both value expressions must evaluate to a type that is compatible with the target variable.</p>

<p>The operator is similar to the way conditional expressions (if-then-else) work in <a href="page.php?w=functional_programming">functional programming</a> languages, like <a href="page.php?w=Scheme_%28programming_language%29">Scheme</a>,</p><p>
<a accesskey="1" href="page.php?w=Ternary_conditional_operator&amp;p=3">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Ternary_conditional_operator&amp;p=5">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
