# Implement case\_when in Queryverse

**URL:** https://discourse.julialang.org/t/implement-case-when-in-queryverse/30986
**Category:** Data
**Created:** [November 12, 2019, 1:56am UTC](https://discourse.julialang.org/t/implement-case-when-in-queryverse/30986 "2019-11-12T01:56:52Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)
#### Post date: [November 13, 2019, 2:47am UTC](https://discourse.julialang.org/t/implement-case-when-in-queryverse/30986/6 "2019-11-13T02:47:13Z")

</div>

Please see [PSA: Make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757). It would be great if you could make a MWE.

Even without `Match.jl`, this is probably the syntax you are looking for:

```julia
df.TIME = map(df.TIME) do t 
t == 0 ? 95.9 :
t == 0.08 ? 96.08 :
t == 0.25 ? 96.25 :
t == 0.50 ? 96.5 :  
t == 1 ? 97.0 :
t == 3 ? 99.0 :
t == 8 ? 104.0 : missing
end

```

---

_[View the full topic](https://discourse.julialang.org/t/implement-case-when-in-queryverse/30986)._
