<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Oct 8, 2015 at 12:54 PM, Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com" target="_blank">pascaldragon@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><p></p>
</span><p>I had the idea to implement inline-if as well. I think the syntax I selected is derived from Oxygene, but it looks very Pascal and shouldn't break anything:</p>
<p>left := if expr1 then expr2 else expr3;</p>
<p>Thereby expr1 returns Boolean and expr2 determines the type of the whole inline-if, thus expr3 needs to be compatible to expr2.</p></blockquote><div>Does Oxygene allow something like this? <br></div><div>left := if expr1 then begin exprN, left := exprK end else begin left:=left+3; exp3 end<br></div><div><br>or is it only one expression at a time? <br></div><div></div><div>left := if expr1 then if expr2 then expr5 else expr6 else expr7;<br><br></div><div></div><div>thanks,<br></div><div>Dmitry<br></div></div></div></div>