Reports true if both boolean1 and boolean2 are true. Otherwise reports false.
Note that if boolean1 is false, then boolean2 will not be run (since it can't affect the result). See the programming guide for more information on logical operator precedence.
if (pxcor > 0) and (pycor > 0) [ set pcolor blue ] ;; the upper-right quadrant of ;; patches turn blue
Take me to the full NetLogo Dictionary