@name JoyTank
@inputs B10 Y2 Z
@outputs BA YF YA Strength
@persist 
@trigger 
if(B10&~B10){BA=!BA}
#if((Y2<0)){YF=-1 YA=1}
#if((Y2>0)){YA=1 YF=-1}
if(Z){YF=YA=Z}
if(!Y2&!Z){YF=YA=0}
Strength=10000
runOnLast(1)
if(last()){selfDestructAll()}
