by @biancaballerta21 Fork
{"functions":[],"name":"Savings Withdrawal","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_1f094dcb_7fc8_42ed_a14d_297a8f3f927b"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"withdraw","lengthValue2":"5","id":"id_6b801ca3_73cb_47e5_9910_a66138fb2ef1","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"savings","lengthValue2":"5","id":"id_99e93005_ca46_4bac_8a96_2614b94902c4","initValue":"30000"},{"newline":true,"@type":"Output","id":"id_31720d73_da62_48c5_af76_6368b0a35cef","value":"\"Your savings account has: ₱\" +savings"},{"@type":"Input","name":"withdraw","id":"id_27705356_0d06_4074_98ff_778888226560","prompt":"Input withdrawal amount: "},{"@type":"Assign","name":"savings","id":"id_f50148ca_dad4_4a5b_8c5f_a84c3ce3f365","value":"savings - withdraw"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_82e200d5_9f69_466c_b0ac_cd3a297f4682","value":"\"You have withdrawn: ₱\" +withdraw"},{"newline":true,"@type":"Output","id":"id_12218f98_7ca0_4918_8499_4e52f454d388","value":"\"You have: ₱\" +savings+ \" left from your savings\""}],"id":"id_e2eb6202_8470_4690_8b79_02e99500eab3"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_67c0dcf0_b41a_4395_8e9b_5425bb756dad","value":"\"You do not have enough balance for that withdrawal.\""}],"id":"id_36443a3d_b391_459e_be35_8d3aa97e8cd2"},"condition":"withdraw > savings","@type":"If","id":"id_05ea6fc9_c56d_4a42_9f80_b0e9d47e1e8f"},{"@type":"Return","id":"id_8ee99400_546d_4994_a76d_d96318daa32d","maybeValue":null}],"parameters":[]},"id":"id_53e83223_d20e_4e0b_9534_7ace68286a4f","config":{"showDebugVars":true,"useInputPrompt":true,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"python","showGenCode":true},"version":"0.3","revision":659}