by @Cristhian Adrian Suarez Silva Fork
{"functions":[],"name":"boton","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_7ab5e401_d1ef_4109_a875_e986badd61f4"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"alarma","lengthValue2":"5","id":"id_abd8d8ae_d853_48d6_8204_0c614e373b94","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"humo","lengthValue2":"5","id":"id_27545303_d047_471b_a1d5_88e2ba8eb200","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"boton","lengthValue2":"5","id":"id_a65fef3e_6a35_48b1_b0e0_56f596825a45","initValue":null},{"newline":true,"@type":"Output","id":"id_aeb192bd_bb01_4c23_8371_9fdae0437237","value":"\"el sensor detector de humo? \""},{"newline":true,"@type":"Output","id":"id_8ba65d9c_bd05_4b4a_aea6_4162fa3c002a","value":"\"1 para Si , 0 para No\""},{"@type":"Input","name":"humo","id":"id_a3ff7f86_c93b_4b2d_a37a_9e97644ec9e5","prompt":null},{"newline":true,"@type":"Output","id":"id_39b1d262_56cf_4bf0_9e51_0914fbc8b222","value":"\"preciono el botón\""},{"@type":"Input","name":"boton","id":"id_35e5ae3d_5100_4695_9e2d_db11def07a9b","prompt":null},{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_3453fcc2_0ec7_4d74_b721_c504d831e176","value":"\"apagada\""}],"id":"id_fd1664a9_f3a7_4c2e_960a_382118d54698"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_3000cc24_b46d_49e8_8ed1_d137a8a500bf","value":"\"encendida\""}],"id":"id_5751e518_dbcb_4236_947c_a4b6afeee785"},"condition":"humo==1 || boton==1","@type":"If","id":"id_b4437dbc_eb1e_461f_b4b8_8633d6c17a60"},{"@type":"Return","id":"id_615d5e05_48b9_497f_b2bd_de614d0068b0","maybeValue":null}],"parameters":[]},"id":"id_67200c4a_92a2_4bca_88be_8b695e09ad7f","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":323}