{"id":378,"date":"2023-09-09T15:17:05","date_gmt":"2023-09-09T15:17:05","guid":{"rendered":"https:\/\/javigomez.org\/?p=378"},"modified":"2025-09-29T20:34:09","modified_gmt":"2025-09-29T20:34:09","slug":"03-pseint-bifurcaciones","status":"publish","type":"post","link":"https:\/\/javigomez.org\/index.php\/2023\/09\/09\/03-pseint-bifurcaciones\/","title":{"rendered":"03. PSeInt &#8211; Bifurcaciones"},"content":{"rendered":"\n<p><strong>Alternativa simple: <\/strong>establece un conjunto de instrucciones que se ejecutar\u00e1n si se cumple una condici\u00f3n que retornar\u00e1 un valor booleano<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/javigomez.org\/wp-content\/uploads\/2023\/09\/image-42-5-1-1.png\" alt=\"\" class=\"wp-image-379\" style=\"width:378px;height:289px\" width=\"378\" height=\"289\"\/><\/figure>\n\n\n\n<p><strong>Alternativa doble<\/strong>: a\u00f1ade otro bloque de instrucciones que se ejecuta en caso de que no se cumpla la condici\u00f3n.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"http:\/\/javigomez.org\/wp-content\/uploads\/2023\/09\/image-42-6-1-1.png\" alt=\"\" class=\"wp-image-380\"\/><\/figure>\n\n\n\n<p><strong>Alternativa m\u00faltiple<\/strong>: permite ejecutar diferentes bloques de instrucciones seg\u00fan el valor que tome una expresi\u00f3n que es comparada con los valores de cada caso o bien mediante el anidamiento de diferentes estructuras de alternativa doble cuyas condiciones son excluyentes. Ejemplo de bloques equivalentes en resultado:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"http:\/\/javigomez.org\/wp-content\/uploads\/2023\/09\/image-42-7-1-1.png\" alt=\"\" class=\"wp-image-381\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"PSeInt U01 03 Bifurcaciones\" width=\"1200\" height=\"675\" src=\"https:\/\/www.youtube.com\/embed\/3bYJMvyuU_k?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Alternativa simple: establece un conjunto de instrucciones que se ejecutar\u00e1n si se cumple una condici\u00f3n que retornar\u00e1 un valor booleano Alternativa doble: a\u00f1ade otro bloque &hellip; <\/p>\n","protected":false},"author":1,"featured_media":376,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[52,70,129,183,187,271,272,300,307,308,320],"class_list":["post-378","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pseint-pseudocodigo","tag-bifurcaciones","tag-case","tag-else","tag-hacer","tag-if","tag-pseint","tag-pseudocodigo","tag-segun","tag-si","tag-sino","tag-switch"],"_links":{"self":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/comments?post=378"}],"version-history":[{"count":1,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/378\/revisions"}],"predecessor-version":[{"id":938,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/378\/revisions\/938"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media\/376"}],"wp:attachment":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media?parent=378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/categories?post=378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/tags?post=378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}