by @Glorioso, Princes G. Fork
{"functions":[],"name":"FLOWCHART5","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_2bb04b2d_aa15_413f_b34c_b83de58ba887"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"balance","lengthValue2":"5","id":"id_c3c63eba_f382_4cb1_b214_9c6640bad8f9","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"amount","lengthValue2":"5","id":"id_f02bb482_4c7d_4a54_9ce3_bf3d59d66c79","initValue":"0"},{"@type":"Input","name":"balance","id":"id_72ed6c58_0c45_46e2_9ea0_fba8260cad29","prompt":"0"},{"@type":"Input","name":"amount","id":"id_28d39f51_de6a_49d7_8cd3_576b26d8bc5d","prompt":"0"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_084c27c6_f39b_4d34_9cf1_3f6a4d0f6832","value":"\"Invalid amount entered.\""}],"id":"id_99a40d73_f84a_4a8e_803b_3b1057bb0edc"},"trueBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_6cad19f5_a84d_4d4c_ab85_a3672d5bc2cc","value":"\"Insufficient balance.\""}],"id":"id_7bc7e4c0_80bd_4669_a727_d14f6ef02375"},"trueBlock":{"statements":[{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"newbalance","lengthValue2":"5","id":"id_247fe7f3_fb45_47f8_9acc_bf64e5347125","initValue":"0"}],"id":"id_17774862_9f4e_470f_96a1_db3ec2ec45c9"},"condition":"amount <= balance","@type":"If","id":"id_01a2cbf1_70ae_4435_91e4_325d9315e289"},{"@type":"Assign","name":"newbalance","id":"id_1157b08e_d231_42f7_9be4_2d72b496d4af","value":"balance - amount"},{"newline":true,"@type":"Output","id":"id_a32e3580_44c6_491d_aa48_edbe522758cb","value":"\"Withdrawal successful.\""},{"newline":true,"@type":"Output","id":"id_38a54e72_6dda_4ff0_b3d4_2df0ed6f0d22","value":"newbalance"}],"id":"id_c14facc2_7cbd_456b_af0c_3a32f1f387f4"},"condition":"amount > 0","@type":"If","id":"id_7a0e27c2_8035_4bca_8c4e_3aa748e24189"},{"@type":"Return","id":"id_1f05fb40_8521_4347_9e27_ab03a2ddbc10","maybeValue":null}],"parameters":[]},"id":"id_57a5c3bd_6c07_48bc_ac1a_ee9e9c9f19eb","config":{"showDebugVars":true,"useInputPrompt":true,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"python","showGenCode":true},"version":"0.3","revision":136}