@@ -0,0 +1,1123 @@
+package com.edinarobotics.utils.autonomous.conditions;%0A%0Aimport com.edinarobotics.utils.autonomous.LoopCondition;%0A%0A/**%0A * A %7B@link LoopCondition%7D that can be used to make something run a fixed%0A * number of times. It returns %7B@code true%7D while the counter is less than%0A * a given value.%0A * This class is used by %7B@link com.edinarobotics.utils.autonomous.ForLoopStep%7D.%0A */%0Apublic class CounterCondition implements LoopCondition%7B%0A    private int countTo;%0A    private int value;%0A    %0A    /**%0A     * Constructs a CounterCondition that will return %7B@code true%7D from%0A     * %7B@link #get()%7D for %7B@code countTo%7D calls.%0A     * @param countTo the number of times to return %7B@code true%7D from%0A     * %7B@link #get()%7D.%0A     */%0A    public CounterCondition(int countTo)%7B%0A        this.countTo = countTo;%0A        value = 0;%0A    %7D%0A    %0A    /**%0A     * Returns %7B@code true%7D if get() has been called fewer times than%0A     * %7B@code countTo%7D.%0A     */%0A    public boolean get()%7B%0A        return value%3CcountTo;%0A    %7D%0A    %0A    /**%0A     * Resets the counter so that this object can be used again.%0A     */%0A    public void reset()%7B%0A        value = 0;%0A    %7D%0A%7D%0A

Add CounterCondition to make it easy to run a loop a fixed number of times.