Hi.
I'm trying to set up a script for DCS SU25T (and other similar aircraft) so that the throttle b13 cycles between display zoom in and display zoom out.(same as china hat fwd on the A10C) I have butchered the script from the examples but it repeats the key press indefinitely and I can't stop it.
Here's me script

script

sequence
wait(js2.b13);
cms.b1=true;
wait(js2.b13);
cms.b1=false;
cms.b2=true;
wait(js2.b13);
cms.b2=false;
endsequence

endscript

cms.b1 is = (Display_zoom_in)
cms.b2 is - (Display_zoom_out)

Please explain this as if I were a three year old as I'm well out of my depth here.