I know the following:<br><br>[1] That the general form of conditional expression is: <span style="color: rgb(255, 0, 0);">if</span> <b>Boolean_expression</b> <span style="color: rgb(255, 0, 0);">then</span> <i>exp1</i> <span style="color: rgb(255, 0, 0);">else</span> <i>exp2<br>
</i>[2] That a conditional expression must always have both a <span style="color: rgb(255, 0, 0);">then</span> and an <span style="color: rgb(255, 0, 0);">else</span> expression.<br>[3] That both <i>exp1</i> and <i>exp2</i> must have the same type, which is the type of the entire conditional expression.<br>
[4] That <i><span style="color: rgb(0, 0, 0);">exp1</span></i> must be &lt;true-value&gt; and <i><span style="color: rgb(0, 0, 0);">exp2</span></i> must be &lt;false-value&gt;<br><br>Reference: Discrete Mathematics Using Computer by John O&#39;Donnell and et al. (Second Edition)<br>
<br>My question: Is it possible that <span style="color: rgb(0, 0, 0);">exp1</span> and <span style="color: rgb(0, 0, 0);">exp 2</span>&nbsp; be different function calls of another functions (separately) elsewhere within the same program?<br>
Note: My Boolean_expression is Boolean<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; My <i>exp1</i> is a function call elsewhere within the same program (more like a subroutine)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; My <i>exp2</i> is another function call also elsewhere within the same program.<br>
<br><br>Tope<br>South Africa<br><br><br><br><br><br>