by @stefani Fork
{"functions":[],"name":"lat if 2 stefani_9h_171026","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_4584f46f_cb95_479e_bee4_ea79e8eb705e"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"total","lengthValue2":"5","id":"id_5cd10a57_fc01_4019_a021_1af1109fb869","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"diskon","lengthValue2":"5","id":"id_06f5f6d9_0d6d_4923_bbab_971db328d20e","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"potongan","lengthValue2":"5","id":"id_f5a69c51_4f66_4a95_864d_392bf83ff65a","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"totalbayar","lengthValue2":"5","id":"id_875d3f38_3a05_41ee_91f4_6c5e1dfe56a6","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Real","name":"totalbelanja","lengthValue2":"5","id":"id_97c7d651_4a9e_43a6_8299_aa08e4d6c3cd","initValue":null},{"newline":false,"@type":"Output","id":"id_d8d03af2_bd43_4263_b43f_53181ec66bb1","value":"\"masukkan totalbelanja:\""},{"@type":"Input","name":"total","id":"id_8e0b7172_ab07_4512_8110_6768f13c6cd0","prompt":null},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"@type":"Assign","name":"diskon","id":"id_426e3b7f_2810_43cd_9772_ace186df918a","value":"0"}],"id":"id_458de03b_d22a_4024_9c61_bdb16aee9322"},"trueBlock":{"statements":[{"@type":"Assign","name":"diskon","id":"id_c90f352a_5b8a_48e2_bdc8_34870582f11a","value":"0.10"}],"id":"id_b833bce0_b1e7_4b9b_a31a_6a417a816d73"},"condition":"total >=200000","@type":"If","id":"id_20a95f29_3f00_418e_95fe_c7d751709e0e"}],"id":"id_ad24e1df_7c32_488a_b2f1_d232a2473ac3"},"trueBlock":{"statements":[{"@type":"Assign","name":"diskon","id":"id_3ea06309_1942_4a23_b0d6_e05c8074f077","value":"0.20"}],"id":"id_bd05dfdd_b185_4525_b40a_a8340ff55921"},"condition":"total >=500000","@type":"If","id":"id_b594d35f_8300_4199_ac5e_137c7d6fbed2"},{"@type":"Assign","name":"potongan","id":"id_734fbf74_2a24_48c7_a2e5_93feede87cd6","value":"total*diskon"},{"@type":"Assign","name":"totalbayar","id":"id_0edfdcc5_ab6d_42b4_abaa_a56d23712f61","value":"total-potongan"},{"newline":false,"@type":"Output","id":"id_2c6ae5ca_3d10_422a_963c_744ee3458f82","value":"\"output\"\"total belanja awal : Rp\", total"},{"newline":true,"@type":"Output","id":"id_bea080e3_3c84_47dc_bc5c_0785a024a66a","value":"\"output\" \" diskon yang didapat : \" diskon * 100, \"%\""},{"newline":true,"@type":"Output","id":"id_22e93b58_1dea_4038_9303_fd56a877c0b2","value":"\"output\"\"jumlah potongan : Rp \", potongan"},{"newline":true,"@type":"Output","id":"id_dda4ff0b_3647_43a3_9dd7_3b4b07064d28","value":"\"output\" \""},{"@type":"Return","id":"id_b285cb5b_b545_4243_ae26_bc9e8ec04069","maybeValue":null}],"parameters":[]},"id":"id_77383e57_2ddc_431f_910b_82d56e11b54d","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":827}