by @Rαєllє Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_30aaa60f_e124_490c_a899_7e120ddac6d2"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"numero","lengthValue2":"5","id":"id_d6a4fa3b_1a90_4e00_b462_9b8a008e6a27","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"opcao","lengthValue2":"5","id":"id_90022952_5bce_4606_8340_78d0a4e7fb79","initValue":null},{"@type":"Input","name":"numero","id":"id_e301831f_3282_4ad4_97a2_646dc200fe44","prompt":null},{"newline":true,"@type":"Output","id":"id_4d0cc1b1_97db_4414_87db_2a6ce7b79855","value":"\"1 para antecessor e 2 para sucessor\""},{"@type":"Input","name":"opcao","id":"id_c4367dfe_fe0c_4c67_89b5_d80fff7c0ac5","prompt":null},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_c574b52b_5d79_413c_9c3b_2f4614b0954b","value":"\"erro!\""}],"id":"id_ccd00888_9319_452a_968d_e7efb0f4560e"},"trueBlock":{"statements":[{"@type":"Assign","name":"numero","id":"id_a095d1de_5532_4a8e_8569_5ff91a301cb6","value":"numero+1"},{"newline":true,"@type":"Output","id":"id_2d11d299_ce48_4e4d_b049_d3a95737054e","value":"numero"}],"id":"id_8303e4ab_711f_4a6d_90b0_a05edd183ffb"},"condition":"opcao == 2","@type":"If","id":"id_82ebe9e5_aeb6_497a_bf47_ba2cd0dbedbc"}],"id":"id_2987a9e6_e1eb_4547_8300_14d24143d6e0"},"trueBlock":{"statements":[{"@type":"Assign","name":"numero","id":"id_3669b646_bbde_4374_85ed_2bb70ffaa742","value":"numero-1"},{"newline":true,"@type":"Output","id":"id_3bb1b32e_7379_45e7_8999_40a6b1021ff9","value":"numero"}],"id":"id_65ec0648_45b2_41a8_9abf_b57f4232f13e"},"condition":"opcao == 1","@type":"If","id":"id_b6391837_065f_4b5f_846e_ff432c1a6f3a"},{"@type":"Return","id":"id_024983ad_f68f_4cf7_991c_2701f1156934","maybeValue":null}],"parameters":[]},"id":"id_e6755a40_c3fd_48e4_972c_c7a2da16e1ec","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":231}