by @MUHAMMAD MUSTAFA SALMAN Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_ceba7b85_407a_49a8_9728_2cc398cc7873"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"pincorrect","lengthValue2":"5","id":"id_6b654e5c_51f3_4bf5_a031_e8ae15b95c15","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"balance","lengthValue2":"5","id":"id_a2559979_9501_4c84_8699_90cb983e77b9","initValue":"100000"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"amount","lengthValue2":"5","id":"id_6aa3ca69_21a0_4764_8dd4_24902ea6bc13","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"atmcash","lengthValue2":"5","id":"id_4da5be4f_d462_4862_a7f9_f47e1e4387d5","initValue":"5000000"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Boolean","name":"cardvalid","lengthValue2":"5","id":"id_2ee126bf_6cf9_4d0d_b48a_6da45f9262f8","initValue":"true"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_3076aeef_0c77_45c0_9c77_ad1f08364989","value":"\"invalid card\""}],"id":"id_c3188e58_7371_44f4_8543_8f34af24fd1e"},"trueBlock":{"statements":[{"@type":"Input","name":"pincorrect","id":"id_f17efd54_6840_4a82_8240_4e20d711e21d","prompt":null},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_7be4ccb9_28fd_4bb8_9cbe_f9c17e4c4080","value":"\"incorrect pin\""}],"id":"id_22d718ba_005b_4347_80b9_17e835a282e4"},"trueBlock":{"statements":[{"@type":"Input","name":"amount","id":"id_5645c6a7_bcd0_499a_bb9e_83a6cbe1085a","prompt":null},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_a33a7808_be51_42cd_9b14_f39812329794","value":"\"insufficient balance\""}],"id":"id_a82217db_bed7_4454_852e_8030306bd73e"},"trueBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_392800a5_229a_47b8_ba32_ba5050b7963f","value":"\"atm out of cash\""}],"id":"id_c80440e4_0de1_40fd_8ce5_0dc38c150475"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_21ff4a43_369e_4bd6_8c2a_a83797cd2dca","value":"\"collect your cash\""},{"newline":true,"@type":"Output","id":"id_ad5a0774_e01e_41c6_8a6b_b9e70fe1b5e8","value":"\"thankyou\""}],"id":"id_ef3deec7_27cb_4867_b2e6_49371d6b9700"},"condition":"atmcash>=balance","@type":"If","id":"id_fe89f9c1_5de0_4342_af52_35a68480b4f8"}],"id":"id_3c1e3edb_294b_425a_9e5b_cdc8e0cb04d1"},"condition":"balance>=amount","@type":"If","id":"id_3092b92e_b0ac_41b5_8026_685fc997f8a1"}],"id":"id_fb2daf02_89c7_4290_8b6b_2e2c7f46e380"},"condition":"pincorrect == 1234","@type":"If","id":"id_ca6e98a7_511a_4125_885f_07a8013c052a"}],"id":"id_6207a09f_300f_45b6_bb2e_3e0d483b5a75"},"condition":"cardvalid == true","@type":"If","id":"id_b3d6b440_85d0_407a_9bad_100e8336810d"},{"@type":"Return","id":"id_5e145138_dc30_4039_811d_b3a019074aeb","maybeValue":null}],"parameters":[]},"id":"id_3243650e_89a8_48fa_a804_1fb6ff2a6485","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":true},"version":"0.3","revision":350}