> If i understand correctly "ThenExpr" is executed only when "Condition" is true and "ElseExpr" is executed only when "Condition" is false. For standard "IfThen" from Math and StrUtils "ThenExpr" and "ElseExpr" is executed before IfThen is called.
This is one thing that becomes my concern as expected side effect might not be triggered due to semantic differences, although I seldom use IfThen from either math/strutils (not lazy enough to write complete `if ... then begin ... end else begin ... end` for the sake of easy future modification). -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/New-feature-IfThen-intrinsic-tp5723735p5723748.html Sent from the Free Pascal - General mailing list archive at Nabble.com. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal