# "NaN" appears when using spacebar to denote empty cell in pavlovia

**URL:** <https://discourse.psychopy.org/t/nan-appears-when-using-spacebar-to-denote-empty-cell-in-pavlovia/17992>\
**Category:** Builder\
**Tags:** pavlovia\
**Created:** [November 10, 2020, 1:51pm UTC](https://discourse.psychopy.org/t/nan-appears-when-using-spacebar-to-denote-empty-cell-in-pavlovia/17992 "2020-11-10T13:51:14Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [April 7, 2021, 7:47am UTC](https://discourse.psychopy.org/t/nan-appears-when-using-spacebar-to-denote-empty-cell-in-pavlovia/17992/18 "2021-04-07T07:47:23Z")

</div>

There are two options. The following needs the code component to be above the text component set to $displayText Each Repeat.

```auto
displayText=columnName
if displayText=='x':
     displayText=' '

```

The alternative needs the code component to be below the text component and set to columnName Each Repeat.

```auto
if columnName=='x';
     text_component.text=' '

```

---

_[View the full topic](https://discourse.psychopy.org/t/nan-appears-when-using-spacebar-to-denote-empty-cell-in-pavlovia/17992)._
