by @Galanao, Denmar Gacusana Fork
{"functions":[],"name":"fc10","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_1cbfeb2d_bd92_4d9d_b3b3_21f5799c7241"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"balance","lengthValue2":"5","id":"id_47400dff_b995_4288_8332_d08a2b183748","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"amount","lengthValue2":"5","id":"id_c8df7723_dc8f_4f82_b1f6_1c7d4f36dc80","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"newBalance","lengthValue2":"5","id":"id_6f0533c3_57ae_4e18_9599_49d1ca0fee04","initValue":null},{"newline":true,"@type":"Output","id":"id_bc143b90_6006_40d5_ad29_a3a5c156339c","value":"\"Enter your initial balance:\""},{"@type":"Input","name":"balance","id":"id_34701018_9cc0_43ba_a072_45d65a310cd9","prompt":null},{"newline":true,"@type":"Output","id":"id_52d57e8b_933f_41be_ae47_b2c0ac2f3f0f","value":"\"Enter withdrawal amount:\""},{"@type":"Input","name":"amount","id":"id_387ab350_e59d_4f75_9b53_d634fb46616a","prompt":null},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_6562667a_b9db_4cdf_a82d_5d3c2716d2f8","value":"\"Transaction Failed: Insufficient balance or invalid amount.\""}],"id":"id_c1f1578b_18ef_4fe9_9c57_4143906548b2"},"trueBlock":{"statements":[{"@type":"Assign","name":"newBalance","id":"id_aca3a66e_31eb_4de2_b966_a689978f1bfe","value":"balance - amount"},{"newline":true,"@type":"Output","id":"id_1374e931_2fdc_4fe6_b276_0924c800b86b","value":"\"Withdrawal successful. Remaining balance: \" + newBalance"}],"id":"id_561d8a1a_d9ec_43d3_89d0_75813cf2da2a"},"condition":"amount > 0 && amount <= balance","@type":"If","id":"id_621bb63b_1b2e_4d3c_86ad_bda73ccec16f"},{"@type":"Return","id":"id_e7b20cd8_2eb8_4aad_9a84_c4ec50aabc59","maybeValue":null}],"parameters":[]},"id":"id_456e30ca_d970_4916_ab1e_ff777e3a22a0","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":188}