我正在尝试运行以下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?]