by @Lee Juses Cari-an Fork
{"functions":[],"name":"ATM withdrawal","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_b47eab68_334e_47a8_a756_77602fdc2122"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"balance","lengthValue2":"5","id":"id_657b6ca6_d7ea_46da_a51f_f844fd67ba6c","initValue":"10000"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"amount","lengthValue2":"5","id":"id_ac8a1448_3c2a_41d0_be2f_f2e2ca718801","initValue":"2500"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_64f6224c_0d66_41b7_a0d6_0285536a072f","value":"\"Invalid amount, Please try again\""}],"id":"id_0963353b_bfbd_42b3_8926_fbd78ddea5e0"},"trueBlock":{"statements":[],"id":"id_7811028d_4af4_4fbb_a53e_db8aca5097e5"},"condition":"amount > 0","@type":"If","id":"id_9d1c175b_1478_4185_9982_5af5aa561ad7"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_3b43cf29_9c06_4cc3_90b1_fb9ffe42e68b","value":"\"Insufficient balance, Transaction Cancelled\""}],"id":"id_ddbcf2f8_979d_497d_a1f7_ef21c086abd6"},"trueBlock":{"statements":[],"id":"id_a4be51aa_f7df_4456_a216_b2c21a344b45"},"condition":"balance <= amount","@type":"If","id":"id_552d814e_b2e1_4108_b292_a2fe244732be"},{"@type":"Assign","name":"balance","id":"id_6ff00883_b472_4f9d_9226_b4041bf918a5","value":"balance - amount"},{"newline":true,"@type":"Output","id":"id_468dc0b6_b537_4d14_9802_2b93481e67a5","value":"\"withdrawal successful\""},{"newline":true,"@type":"Output","id":"id_e249a7a4_264a_47e1_892f_7db9d5d1ce55","value":"\"Your remaini balance is \""},{"newline":true,"@type":"Output","id":"id_103185a6_7d1d_4f59_b1d4_b8a0c46bee1b","value":"balance"},{"@type":"Return","id":"id_d2371529_0ff3_45fa_a1be_8e141688cdce","maybeValue":null}],"parameters":[]},"id":"id_2f21153d_3b09_4c2c_805e_035fbc849c19","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"python","showGenCode":true},"version":"0.3","revision":322}