and1.0

boolean1 and boolean2

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).

if (pxcor > 0) and (pycor > 0)
  [ set pcolor blue ]  ;; the upper-right quadrant of
                       ;; patches turn blue

Take me to the full NetLogo Dictionary