Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
14.985 Beiträge
 
#1

if then (else) expressions

  Alt 8. Jan 2013, 13:20
“if” expressions are now supported in DWScript SVN, those were introduced to Pascal by Oxygene a couple years back, and are Pascal’s verbose version of the C ternary operator (?:). For instance var s := if (a0) then Sin(1/a) else 1; being equivalent to var s : Float; if ...

More...
  Mit Zitat antworten Zitat