by @Edoardo Righi Fork
{"functions":[],"name":"es 2","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_6fe8feac_b88c_4226_b88d_ec711b61ac1e"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"x","lengthValue2":"5","id":"id_b9d9adfb_a2f0_43aa_b582_18488b4baf81","initValue":null},{"newline":true,"@type":"Output","id":"id_720d453b_be4c_458b_80a9_d715fa0652ad","value":"\"Quanto costa la tua spesa?\""},{"@type":"Input","name":"x","id":"id_303578c4_e87d_48e1_8ac5_0b3ae04efc06","prompt":null},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_d6caf9ec_7a96_423b_8d36_cb6033228021","value":"\"Niente sconto\""}],"id":"id_35e2f843_1f2d_44ab_b9ba_0adaf8f3065a"},"trueBlock":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"x","id":"id_e5ef1be5_ffa9_423d_a458_a53670e903de","value":"x-5"}],"id":"id_7ca94de3_1631_48e6_8958_1fa0694ffa52"},"trueBlock":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"x","id":"id_c1cdd731_e5c9_4dea_b8c2_0c22aa6def63","value":"x-10"}],"id":"id_724df968_bc5f_4a48_89ac_a18863e967bf"},"trueBlock":{"statements":[{"@type":"Assign","name":"x","id":"id_5f09d643_59dd_4409_83b3_c7f2419a5b53","value":"x-20"}],"id":"id_dbe87527_fcb3_4553_97e2_c490d2462e4f"},"condition":"x>100","@type":"If","id":"id_bdcf5626_6470_46dc_8699_93dbe5f7341b"}],"id":"id_d55ae82d_5567_4500_a91d_c2deb441fb65"},"condition":"x>50","@type":"If","id":"id_229eb264_9f7b_4a41_ba1a_e0ba4249b430"},{"newline":true,"@type":"Output","id":"id_26155a38_3e05_446a_85a7_27508375c233","value":"\"la tua spesa ora costa \" + x + \""}],"id":"id_e89ade97_afc8_4636_90e3_32170bdf8bdc"},"condition":"x>5","@type":"If","id":"id_02cb8eb9_350a_47d7_a2f5_7e11ec7b9af8"},{"@type":"Return","id":"id_a1e7994a_c45f_424b_817a_cd0b6e08dfab","maybeValue":null}],"parameters":[]},"id":"id_d9c00005_46f4_4c6a_82c5_c76f879d43a6","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":458}