by @James Robertson Fork
{"functions":[],"name":"Count","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_c1e65b38_e416_45a6_935e_4754960222d6"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"Count","lengthValue2":"5","id":"id_16e66e75_092f_4503_9922_92737ce31a43","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"Num1","lengthValue2":"5","id":"id_ddca0f26_7f35_4bce_ade7_141fa9834a85","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"Num2","lengthValue2":"5","id":"id_e1662d0a_8dba_472f_a2d1_af7399f4d645","initValue":null},{"newline":true,"@type":"Output","id":"id_48d540a8_4acf_45b7_9fcc_1938f1c2ddf5","value":"\"Enter a number and then count down from it\""},{"@type":"Input","name":"Num1","id":"id_bcb34565_3985_4224_bf1e_73c618c9d76a","prompt":null},{"newline":true,"@type":"Output","id":"id_2d1a5e9c_c06f_474a_a9e4_63b37e233a01","value":"\"Put your first number to count down from\""},{"@type":"Input","name":"Num2","id":"id_19f7d2e0_8e7d_45b7_8c42_3ef0a1ba9fc6","prompt":null},{"condition":"Num2 >= 1","@type":"While","id":"id_9b0639b8_d910_40cb_963d_c1ea1a168dbf","body":{"statements":[{"newline":true,"@type":"Output","id":"id_a09a5f48_715d_4c32_a140_85fcc1e0b4dd","value":"\"Now your next one\""},{"@type":"Assign","name":"Count","id":"id_661e903d_36b1_4951_9dc8_bdc094c2b67a","value":"Num2 +1"},{"@type":"Input","name":"Num2","id":"id_3e7f924c_2ebd_4016_b0ea_3c90ef761629","prompt":null}],"id":"id_4437bcb7_d3ba_481b_aa72_b6a35ebfc214"}},{"newline":true,"@type":"Output","id":"id_2b982e3d_9d45_40a5_90fe_3f56800287e1","value":"\"Well done you counted down from \" + Num1"},{"@type":"Return","id":"id_031817c2_0827_4a4d_be5b_ad72a291737a","maybeValue":null}],"parameters":[]},"id":"id_9b1cf19e_307a_46c0_ad0d_2f66e38d2e69","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":273}