我正在尝试运行以下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
)?
答案 0 :(得分:0)
来自@alan,with [infected? or immune?]