by @RABIYA REHMAN Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_7700db08_d68f_48a7_8ecb_e9f9f4efb518"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"String","name":"username","lengthValue2":"5","id":"id_0e355b10_210b_449d_904d_0f176bb50491","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"password","lengthValue2":"5","id":"id_5e0906c5_24e1_4f90_adf6_fdbdb2524172","initValue":null},{"@type":"Input","name":"username","id":"id_07aa0e45_5561_4a17_9c9c_e2bfa5de5d19","prompt":"Please enter username"},{"@type":"Input","name":"password","id":"id_3a2a1c39_4a78_412c_b32f_3b94fe571f20","prompt":"Please enter password:"},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_f80a5652_c7b9_473c_a4d1_42286c462df8","value":"\"wrong username\""}],"id":"id_b8d7c627_4c2e_4c2b_9efb_3b58bbc0f8ba"},"trueBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_3070d81c_4681_426c_9eb2_74f75b79a154","value":"\"wrong password\""}],"id":"id_597dbe81_0b37_4ba9_b224_18e711846997"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_b8fc7f28_8910_4fa7_abd3_8df18c3a7161","value":"\"login successful\""}],"id":"id_daeedb6e_876d_4943_ab42_0970dc7aa682"},"condition":"password==1234","@type":"If","id":"id_adf51c0f_caaa_4c0b_87c6_170529efee04"}],"id":"id_37c1c9cf_ac46_4964_899d_703e654e7a0e"},"condition":"username==\"admin\"","@type":"If","id":"id_fa8cb439_6cc5_47af_af19_adf60a407938"},{"@type":"Return","id":"id_d13b41c7_70dd_4ec4_8740_db18c110aac0","maybeValue":null}],"parameters":[]},"id":"id_042c58ce_f48f_40ee_bb09_b841df5ca9cf","config":{"showDebugVars":true,"useInputPrompt":true,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":true,"lang":"c++","showGenCode":true},"version":"0.3","revision":207}