# Converting inputs into int types

**URL:** https://discourse.processing.org/t/converting-inputs-into-int-types/22276
**Category:** Coding Questions
**Created:** [June 30, 2020, 6:57am UTC](https://discourse.processing.org/t/converting-inputs-into-int-types/22276 "2020-06-30T06:57:14Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)
#### Post date: [June 30, 2020, 4:46pm UTC](https://discourse.processing.org/t/converting-inputs-into-int-types/22276/4 "2020-06-30T16:46:27Z")

</div>

Woops so it is, have you tried an if statement before arising the string. It might be that some conditions return a blank string without a number

Ie if(input.value()!="")

---

_[View the full topic](https://discourse.processing.org/t/converting-inputs-into-int-types/22276)._
