by @Melvs Baniqued Fork
{"functions":[],"name":"Simple ATM Withdrawal","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_bf0b312b"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"balance","lengthValue2":"5","id":"id_4b4b9139","initValue":null},{"@type":"Input","name":"balance","id":"id_d55ce112","prompt":"Enter account balance:"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"withdrawal","lengthValue2":"5","id":"id_f9785828","initValue":null},{"@type":"Input","name":"withdrawal","id":"id_f970a460","prompt":"Enter withdrawal amount:"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_68373fc6","value":"\"Invalid Withdrawal Amount\""}],"id":"id_83e0bfe5"},"trueBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_f0b4b8f4","value":"\"Insufficient Balance\""}],"id":"id_1f822d0a"},"trueBlock":{"statements":[{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"newBalance","lengthValue2":"5","id":"id_9ecbc1b3","initValue":null},{"@type":"Assign","name":"newBalance","id":"id_21ccffd5","value":"balance - withdrawal"},{"newline":true,"@type":"Output","id":"id_c9e52a74","value":"\"New Balance = \" + newBalance"}],"id":"id_bb4cae9d"},"condition":"withdrawal <= balance","@type":"If","id":"id_7fc515c2"}],"id":"id_4be9c110"},"condition":"withdrawal > 0","@type":"If","id":"id_90dd7901"},{"@type":"Return","id":"id_37e33492","maybeValue":null}],"parameters":[]},"id":"id_ebb4fe30_e686_462d_9e4c_bb1fdcf19192","config":{"showDebugVars":false,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":false,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":6}