title: how to use the switch in Netlogo to setup the pen either up or down?
body: <p>im new to netlogo i have a course work i did most of it , but i cant setup the pen to work with the switch what i should write as code to do this this is my code </p>
  
  <pre><code>turtles-own [pen ]
  
  to setup
    clear-all
    ask patches [ set pcolor sky ]
    setup-turtles
  
  end
  
  to setup-turtles
    create-turtles turtles-to-create
    [ set color lime setxy random-xcor random-ycor set size size-of-turtle]  
    set-default-shape turtles "circle"
  end
  
  
  
  to go 
  
   ask turtles
  
     [ 
       fd 1
     ]
  
  
  end
  
  to goforever
  
   ask turtles
    [
      fd 1
    ]
  
  
  end
  </code></pre>