by @2A - Sarino, Mark Gil Fork
{"functions":[],"name":"Function or Menu-DrivenProgram","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_22743bf1_020c_4720_93ff_a193ded90115"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"choice","lengthValue2":"5","id":"id_b7edb30c_8418_4922_b3fd_08f8b83c4948","initValue":null},{"newline":true,"@type":"Output","id":"id_31450edc_4251_4140_a92f_7e8edadc4380","value":"\"--- MENU ---\""},{"newline":true,"@type":"Output","id":"id_ebedb091_9aa3_4a8d_872e_b5f386869b5e","value":"\"1. Say Hello\""},{"newline":true,"@type":"Output","id":"id_e0f18c64_2998_4d40_ba49_466f6542f330","value":"\"2. Say Goodbye\""},{"@type":"Input","name":"choice","id":"id_2886f957_58ef_48a4_a201_d029a0c5936e","prompt":"\"Enter choice (1 or 2): \""},{"falseBlock":{"statements":[{"falseBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_47af4cd8_bf50_45e4_b4bf_3f2aa57fd85a","value":"\"Invalid choice selected.\""}],"id":"id_fd6487cd_daa8_40e9_9b82_4346393f7606"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_e55cf5d2_9261_48cc_b475_9a94d82292b3","value":"\"Goodbye, have a nice day!\""}],"id":"id_1a5a80a0_ccf8_48c6_8d5e_eceb48db1037"},"condition":"choice == 2","@type":"If","id":"id_bef64549_73c1_4e42_9550_c2c905b9df54"}],"id":"id_8e056cc1_c36c_42a2_aab6_c38a45f93a06"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_7d97eab9_2775_4dc1_b740_4945f60615a8","value":"\"Hello there!\""}],"id":"id_21c7ab84_350e_442b_bd79_4d523f268f9e"},"condition":"choice == 1","@type":"If","id":"id_624952f2_62b2_4fde_b2b6_9bcdfbee199d"},{"@type":"Return","id":"id_41eba047_b56f_4203_bf32_fae9b9191215","maybeValue":null}],"parameters":[]},"id":"id_bbcda5f4_0e7c_4afb_af87_79dbd7ed963b","config":{"showDebugVars":true,"useInputPrompt":true,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"python","showGenCode":true},"version":"0.3","revision":119}