# ERROR: TypeError: non-boolean (Array{Float64,2}) used in boolean context

**URL:** <https://discourse.julialang.org/t/error-typeerror-non-boolean-array-float64-2-used-in-boolean-context/23543>\
**Category:** New to Julia\
**Created:** [April 26, 2019, 9:30am UTC](https://discourse.julialang.org/t/error-typeerror-non-boolean-array-float64-2-used-in-boolean-context/23543 "2019-04-26T09:30:32Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [April 26, 2019, 10:23am UTC](https://discourse.julialang.org/t/error-typeerror-non-boolean-array-float64-2-used-in-boolean-context/23543/6 "2019-04-26T10:23:36Z")

</div>

I think you need the solution suggested by @GunnarFarneback.

Generally though, you seem to be having difficulties with understanding and debugging your code (eg [this problem yesterday](https://discourse.julialang.org/t/error-methoderror-no-method-matching-float64-normal-float64/23509/3)). It is perfectly fine to ask here, but perhaps investing some time in learning to use the [new debugger](https://julialang.org/blog/2019/03/debuggers), or just learning to debug by printing (eg `@show`) would also help.

---

_[View the full topic](https://discourse.julialang.org/t/error-typeerror-non-boolean-array-float64-2-used-in-boolean-context/23543)._
