为什么我每次尝试 运行 我的 U.I 中的代码时都会收到此错误?

Why do i get this error every time i try to run the code within my U.I.?

我有代码:

 if pcolor  = blue 
 [ask turtles-here [set heading towards one-of neighbors4 with [pcolor] = grey ] fd speed ].

这样做的目的是让生成在蓝色补丁上的海龟将其航向设置为 pcolor = grey 的邻居,然后沿着该路径行驶。但是,当我 运行 代码时,我收到错误消息:

WITH 预期来自(补丁 -12 14)的 true/false 值,但得到的是 55。

我不知道是什么原因导致了这个错误,也不知道我应该怎么做才能更正它。任何帮助将不胜感激。

我认为它来自对条件的错误理解...

类似于

 ask patches [
    if pcolor  = blue [
      ask turtles-here [
        set heading towards one-of patches with [pcolor = grey] 
        ] 
      ]
    ]

为我工作!