View difference between Paste ID: n62wy4ZF and SfTgjBjh
SHOW: | | - or go back to the newest paste.
1-
I want to stop the loop at "until robot.durability()" if slot 1 on the robot is empty. 
1+
2-
Can I do 'until robot.durability() or if not getStackInInternalSlot()' ?
2+
  while robot.durability() < 0.2 do
3-
Also, is there an easier way to select and drop the content of slot 2 to 11 ? 
3+
    robot.select(2)
4-
Thank you so much for your help. Almost done with this program.
4+
    robot.drop()
5-
5+
    robot.select(3)
6
    robot.drop()
7-
        if not robot.durability() then
7+
    robot.select(4)
8-
              robot.select(2)
8+
    robot.drop()
9-
              robot.drop()
9+
    robot.select(5)
10-
              robot.select(3)
10+
    robot.drop()
11-
              robot.drop()
11+
    robot.select(6)
12-
              robot.select(4)
12+
    robot.drop()
13-
              robot.drop()
13+
    robot.select(7)
14-
              robot.select(5)
14+
    robot.drop()
15-
              robot.drop()
15+
    robot.select(8)
16-
              robot.select(6)
16+
    robot.drop()
17-
              robot.drop()
17+
    robot.select(9)
18-
              robot.select(7)
18+
    robot.drop()
19-
              robot.drop()
19+
    robot.select(10)
20-
              robot.select(8)
20+
    robot.drop()
21-
              robot.drop()
21+
    robot.select(11)
22-
              robot.select(9)
22+
    robot.drop()
23-
              robot.drop()
23+
    robot.select(17)
24-
              robot.select(10)
24+
    robot.transferTo(2)
25-
              robot.drop()
25+
    c.craft(1)
26-
              robot.select(11)
26+
  end
27-
              robot.drop()
27+
end