{"functions":[],"name":"Ascensor","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_1243d247_a25d_435d_a3f5_9b0f5d7faf27"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"VPlantaActual","lengthValue2":"5","id":"id_f26786aa_c014_469f_bae5_4a4d3859e309","initValue":"1"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"VPlantaDestino","lengthValue2":"5","id":"id_f1984606_6149_4a43_91b1_d9f2236ad865","initValue":"0"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"VRespuesta","lengthValue2":"5","id":"id_0f12b68d_20f9_4d1e_818d_42969e267046","initValue":"2"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"A","lengthValue2":"5","id":"id_f2a3ad94_3d19_4834_a32d_1c2862476668","initValue":"0"},{"condition":"VRespuesta == 2","@type":"While","id":"id_93a0a1a6_5216_4bf9_8518_7723430a6885","body":{"statements":[{"newline":true,"@type":"Output","id":"id_0ce3bd3b_26d0_413a_a804_1b5accb45cc5","value":"\"¿A que planta desea ir?\""},{"@type":"Input","name":"VPlantaDestino","id":"id_3d11f892_e383_457b_b7cc_f35eaf14f7f0","prompt":null},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_b1cfd8d7_0b07_4aa6_81f6_b041836789e9","value":"\"El ascensor baja...\""},{"@type":"Assign","name":"A","id":"id_0624bc6d_4c90_47e4_b741_dcf44b9dc01c","value":"VPlantaActual - 1"},{"falseBlock":{"statements":[],"id":"id_e697c977_8990_4043_a929_94c4cb16634f"},"trueBlock":{"statements":[{"condition":"A > VPlantaDestino","@type":"While","id":"id_f2b13bc4_a968_4402_b5d4_b38ee26a1033","body":{"statements":[{"newline":true,"@type":"Output","id":"id_46febc66_dac5_40b0_801b_9ebf14d0e3d1","value":"\"Pasando por planta \" +A"},{"@type":"Assign","name":"A","id":"id_febdef9b_d788_44aa_acd6_1b8a9e070b3d","value":"A - 1"}],"id":"id_ef49d14b_618e_4428_908e_8d7141c58bbb"}},{"newline":true,"@type":"Output","id":"id_76c3c25d_b90d_4b5a_9a34_11b9733336a7","value":"\"LLegada a planta \" +A"}],"id":"id_4d237b33_faf7_47ce_99ec_0b801402b714"},"condition":"A >= VPlantaDestino","@type":"If","id":"id_e13f3651_1dab_47ce_b4c7_71eeae319f30"}],"id":"id_e5d7ad4c_ecc3_42e5_95f2_6820f0b5b9c8"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_831ce62b_7ddd_4702_8aed_682bb05ed05c","value":"\"El ascensor sube...\""},{"@type":"Assign","name":"A","id":"id_3d2e5efb_e6cd_423c_94d4_c24694b060a8","value":"VPlantaActual + 1"},{"falseBlock":{"statements":[],"id":"id_9d6e4934_36b1_4a68_be60_7f7877e8e42e"},"trueBlock":{"statements":[{"condition":"A < VPlantaDestino","@type":"While","id":"id_453998d5_4d2d_431d_976e_cdfa523a3d5a","body":{"statements":[{"newline":true,"@type":"Output","id":"id_0fe065b0_f739_4235_bed1_9e0c1321aa3a","value":"\"Pasando por planta \" +A"},{"@type":"Assign","name":"A","id":"id_47b68efb_7f2e_4df9_8947_05b0014cf2c0","value":"A + 1"}],"id":"id_cabcb9e9_c2d0_4556_b916_9f1948247329"}}],"id":"id_dd3f70db_a5a3_4e90_a631_17d5d11fb6e1"},"condition":"A <= VPlantaDestino","@type":"If","id":"id_3d82170d_be6d_449a_9317_5b472685d68b"},{"newline":true,"@type":"Output","id":"id_ea95de9d_fffa_4734_a854_b41823360927","value":"\"LLegada a planta \" +A"}],"id":"id_ef6425a2_480b_4308_8e96_32681cf5c6f8"},"condition":"VPlantaDestino > VPlantaActual","@type":"If","id":"id_2a7d221f_1985_40e1_a046_9e51b3983197"}],"id":"id_ec0e6ad5_5c1c_4926_9fc8_6306d1e62ed0"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_70571cca_5d0c_4f6d_b4ca_a014ca80a9f5","value":"\"El ascensor ya está en esa planta\""}],"id":"id_d7514ee2_2d4b_4ed6_b4a6_491a67d67294"},"condition":"VPlantaDestino == VPlantaActual","@type":"If","id":"id_9768a774_4468_4c26_8082_c59a6dc25f07"},{"@type":"Assign","name":"VPlantaActual","id":"id_c412e3d2_51fc_41ba_8a77_e8120326a18e","value":"VPlantaDestino"}],"id":"id_1456bee9_8ca8_42fd_b3f7_0203d988eed8"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_896a655c_e35a_4b85_a82d_3e69a26a3864","value":"\"Error, Planta no válida\""}],"id":"id_bf264976_5c28_4fc5_8f09_18c7bde0ad81"},"condition":"VPlantaDestino < 1 || VPlantaDestino > 5","@type":"If","id":"id_2aee13a3_a649_4ba4_974e_3eea7797dd57"},{"newline":true,"@type":"Output","id":"id_e8e43d98_f0f8_45a0_8b13_1ec284beb4c0","value":"\"¿Quieres ir a otra planta? no=1 si=2\""},{"@type":"Input","name":"VRespuesta","id":"id_2d1a68d6_1b9c_4ca1_9447_d77058aa4794","prompt":null}],"id":"id_cb0f567e_663a_4e98_a56f_9a47db8711c3"}},{"@type":"Return","id":"id_5643a7a2_7c1b_442f_a0bb_2c9835f36c40","maybeValue":null}],"parameters":[]},"id":"id_9c7e7d9c_4927_406a_9fb4_613baa1dc782","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"python","showGenCode":false},"version":"0.3","revision":949}