Einzelnen Beitrag anzeigen

Benutzerbild von himitsu
himitsu

Registriert seit: 11. Okt 2003
Ort: Elbflorenz
44.715 Beiträge
 
Delphi 12 Athens
 
#8

AW: Delphi 13 - Ternary Operator

  Alt 2. Sep 2025, 15:26
Was ist eigentlich mit CASE?


if x * case idx of 1: 3; 2: 9; else 666 end + 7 = 111 then Beep;
Delphi-Quellcode:
if x
  * case idx of
      1: 3;
      2: 9;
      else 666
  end
  + 7
  = 111
then
  Beep;
Das CASE ist ja auch nur mehrere IFs,
so in etwa wie https://www.postgresql.org/docs/curr...nditional.html
Ein Therapeut entspricht 1024 Gigapeut.
  Mit Zitat antworten Zitat