我正在尝试运行以下Netlogo过程:

to spread-virus
  ask turtles with [infected?]
      [ ask link-neighbors with [not infected?]
        [ if random-float 100 < virus-spread-chance
          [ become-infected ] ] ]
end

我不仅要ask turtles with [infected?],还要这些with [immune?]。我如何在immune之外添加第二个特征(infected)?

最佳答案

信用@alan,with [infected? or immune?]

08-05 00:23