On Tue, 2 Feb 2016, Maciej Izak wrote:
we can even mix to gain more clear code: foo := if Condition1 then iif(Condition2, ThenExpr1, ElseExpr1) else iif(Condition3, ThenExpr2, ElseExpr2); much more readable than:
Call me old fashioned, but then I think foo:=iif(Condition1, iif(Condition2, ThenExpr1, ElseExpr1), iif(Condition3, ThenExpr2, ElseExpr2)); is more clear. The "if then" construct is really confusing. "if then" is a statement, not an expression. Michael. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal