by @Talosig Joanna Fork
{"functions":[],"name":"simple ATM","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_a81b9f57_a9cd_4b29_87fd_a396bd8a019b"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"balance","lengthValue2":"5","id":"id_5eafbdd0_b5c2_4195_b976_7a6301040c4b","initValue":null},{"@type":"Input","name":"balance","id":"id_faa84f6b_ce9d_4f01_a2b7_b18662a72242","prompt":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"withdrawal","lengthValue2":"5","id":"id_65e920c8_3859_417d_b88b_731cb2bc9d54","initValue":null},{"@type":"Input","name":"withdrawal","id":"id_885f424c_a9bf_47db_971f_61ccb4b32425","prompt":null},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_bec975b8_77e8_421c_ac6a_85860c766db1","value":"\"Invalid withdrawal amount\""}],"id":"id_d889f680_b8cd_4c9d_b86f_ae89f04099aa"},"trueBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_ddc00d48_8397_4d13_9357_e4f497529d73","value":"\"Insufficient Balance\""}],"id":"id_bd8a8763_1416_492e_816c_02773cad85ab"},"trueBlock":{"statements":[{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"new balance","lengthValue2":"5","id":"id_a45b8705_1ed3_40d5_a784_3669d85843dd","initValue":null},{"@type":"Assign","name":"new balance","id":"id_8f60b0dc_43e1_46f6_882e_1dc8ca67768a","value":"balance - withdrawal"},{"newline":true,"@type":"Output","id":"id_7c093d20_6dd6_4475_a9b3_67bf94b93285","value":"\"New Balance = \" + new balance"}],"id":"id_7f976428_7597_46ad_88e4_859f048e7e1d"},"condition":"witdhdrawal <= balance","@type":"If","id":"id_1f93ad52_7766_4c97_8fb3_4dbbf995c6ed"}],"id":"id_274efdc7_dcb6_4ab6_9f5b_0a01138ab86f"},"condition":"withdrawal > 0","@type":"If","id":"id_cf1b6694_9671_407b_9615_8f30075d7636"},{"@type":"Return","id":"id_c54259b3_4730_4298_8b69_4a2fa236bea1","maybeValue":null}],"parameters":[]},"id":"id_e3d267cf_6fa8_4012_8c02_19654df81e85","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":325}