# Case\_When or If in Arquero

**URL:** <https://talk.observablehq.com/t/case-when-or-if-in-arquero/7352>\
**Category:** Help\
**Created:** [November 30, 2022, 12:25am UTC](https://talk.observablehq.com/t/case-when-or-if-in-arquero/7352 "2022-11-30T00:25:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![twelvespot](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/twelvespot/32/7240_2.png) [@twelvespot](https://talk.observablehq.com/u/twelvespot)\
**Post date:** [November 30, 2022, 12:25am UTC](https://talk.observablehq.com/t/case-when-or-if-in-arquero/7352/1 "2022-11-30T00:25:07Z")

</div>

Hi there, new Observable user here. I love Arquero for R Tidyverse data wrangling similarity. However in the Arquero tutorials I didn’t see any kind of conditional new column creation(unless new columns can use JavaScript conditional syntax). I’m just looking for something simple like z = (if x \>= 10 then “large” else “small”).

Any help is appreciated!

---

<div class="post-metadata">

**Author:** ![Fil](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/fil/32/207_2.png) [@Fil](https://talk.observablehq.com/u/Fil)\
**Post date:** [December 1, 2022, 10:38am UTC](https://talk.observablehq.com/t/case-when-or-if-in-arquero/7352/2 "2022-12-01T10:38:41Z")

</div>

Here’s an example [Derive and filter in arquero / recifs | Observable](https://observablehq.com/@recifs/derive-filter-arquero)
