by @Rhys Chohan Fork
{"functions":[],"name":"num44","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_237de955_17db_4e17_8b6b_2595ef997733"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"total","lengthValue2":"5","id":"id_62ca4e80_2766_47de_a973_151a5e43bf98","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"amount","lengthValue2":"5","id":"id_933ab190_775b_4854_9455_1172e7bedf59","initValue":"0"},{"condition":"amount >= 0","@type":"While","id":"id_e18f6fe3_cacf_41e0_9f2d_a31d143105b0","body":{"statements":[{"newline":true,"@type":"Output","id":"id_60b2da36_3ff9_40dd_a07f_84c8eae5439a","value":"\"Please enter the price (or 0 to calculate bill)\""},{"falseBlock":{"statements":[{"@type":"Assign","name":"total","id":"id_72784d82_e33f_4e18_aaf5_71bab9adbfb5","value":"total + amount"}],"id":"id_55ebc723_3a3a_4f63_b906_536e0266ee28"},"trueBlock":{"statements":[],"id":"id_c9443854_94e9_4225_b1e9_2d5c1701fd08"},"condition":"amount == 0","@type":"If","id":"id_77e541f1_9326_44a2_bea6_dcacc6159816"},{"newline":true,"@type":"Output","id":"id_0d1b2241_08ca_4938_b3a6_6c86eaaf9d65","value":"\"Your total amount is £\" + (total)"}],"id":"id_3b20ec74_9a57_49b0_8a52_2137d09f908a"}},{"@type":"Return","id":"id_6ff4c9d3_0274_4fa8_91a4_8fe6274c0a11","maybeValue":null}],"parameters":[]},"id":"id_98660466_96d5_4a83_8f94_caf607f4b366","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":414}