I have two agents mosquito and human. they both have different states like susceptible and infected. I want to check states for my agents and do the action I want to check if mosquito is infected and human susceptible then infect human and vice versa. please help on the codes
to go
ask human
[
set heading random 360
forward random 2
]
**if any? human-here infected? true and any? mosquito-here infected? false
ask mosquito [ set infected? true
set color red]
tick**
end