Conditional operators

🟢 3 of 3 operators all ok · vtlengine 1.10.0rc3 (9e1c81a6) · pandas 2.3.3 · DuckDB 1.5.5
🟢 all ok🟡 partially implemented🛡️ refused with an error🔴 not implemented or crash🔵 engines differ ✅ match · ❌ wrong result · 🛡 guarded error (code) · 💥 crash · 📌 team decision
        ---
config:
  flowchart:
    useMaxWidth: false

---
flowchart LR
    classDef ok fill:#d4edda,stroke:#28a745,color:#000
    classDef partial fill:#fff3cd,stroke:#ffc107,color:#000
    classDef refused fill:#d4edda,stroke:#28a745,stroke-width:3px,stroke-dasharray: 2 2,color:#000
    classDef missing fill:#f8d7da,stroke:#dc3545,color:#000
    classDef diverge fill:#cce5ff,stroke:#007bff,color:#000
    classDef block fill:#2b3a4a,stroke:#2b3a4a,color:#fff,font-weight:bold
    classDef ext fill:#fff,stroke:#666,color:#000,stroke-dasharray: 5 5
    B["Conditional operators"]:::block
    conditional__if_then_else["if-then-else · if then else<br/>🟢5"]:::ok
    conditional__case["Case · case when<br/>🟢7"]:::ok
    conditional__nvl["Nvl · nvl<br/>🟢7"]:::ok
    conditional__if_then_else --- B
    conditional__case --- B
    B --- conditional__nvl
    click conditional__if_then_else href "if_then_else.html"
    click conditional__case href "case.html"
    click conditional__nvl href "nvl.html"
    

Operators

Operator

Status

Forms

if-then-else if then else

🟢

5

Case case when

🟢

7

Nvl nvl

🟢

7

Types

Operator

boolean

any scalar

any type

if-then-else

in

in

out

Case

in

in

out

Nvl

in

out

Forms that are not green

Every form is 🟢 or 🛡️.