by @Thomas Grove Fork
{"functions":[],"name":"ex.3","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_0d87c2b8_1e9f_45b4_a89e_cd37139b455c"},{"@type":"Declare","tpe":"Integer","name":"x","id":"id_fba17e06_b828_4fd1_903a_ef66ffb3ef85","initValue":null},{"@type":"Input","name":"x","id":"id_5995cf4b_ed60_49dd_aa69_13ac5e0354bd","prompt":"Number that then counts down"},{"condition":"x>0","@type":"While","id":"id_7a567186_f4f5_447e_a11f_6766e2d2e3af","body":{"statements":[{"newline":true,"@type":"Output","id":"id_5769bf8a_fa2b_4337_87f7_f14fc4619cb6","value":"x"},{"@type":"Assign","name":"x","id":"id_18fc1989_d4c2_4873_96f4_c200f46542a7","value":"x-1"}],"id":"id_f04d43f5_a931_4980_8ea6_bec03d31962d"}},{"@type":"Return","id":"id_5d18383d_3977_4bd0_a377_0f056228baec","maybeValue":null}],"parameters":[]},"id":"id_144b2e68_e1d4_4696_be9a_2577178e64b0","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":91}