# ipboard3.rb によるインポートスクリプトの問題

**URL:** <https://meta.discourse.org/t/problem-with-import-script-ipboard3-rb/151783>\
**Category:** Product Support\
**Created:** [2020 年 5 月 18 日午前 4:08 UTC](https://meta.discourse.org/t/problem-with-import-script-ipboard3-rb/151783 "2020-05-18T04:08:04Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2020 年 5 月 19 日午後 5:36 UTC](https://meta.discourse.org/t/problem-with-import-script-ipboard3-rb/151783/8 "2020-05-19T17:36:26Z")

</div>

スクリプトが実行しているクエリを実行した場合、期待するデータが得られますか？

```plaintext
if raw.to_i.zero?

```

を以下のように変更しましたか？

```
if raw.length == 0

```

`"randome text".to_i.zero?` は常に true になります。

---

_[View the full topic](https://meta.discourse.org/t/problem-with-import-script-ipboard3-rb/151783)._
