@name Smoothtween
@outputs A
@inputs Go
@persist Max Moving
Max=50
Min=25.94
Int=5
if (first()) {A=Min}
interval(100)
if (Go & !Moving) {
    Moving=1
} elseif (Moving==1) {
    A+=Int
    if (A>=Max) {
        Moving=3
        timer("return",2000)
    }
} elseif (Moving==2) {
    A-=Int
    if (A<=Min) {
        A=Min
        Moving=0
    }
}
if (clk("return")) {Moving=2}
