• Flow

    From DesotoFireflite@VERT/VALHALLA to All on Thu Jun 9 16:20:42 2022
    OK, I'm modifing my default.src to show a defferent level menu for a level 10 user. What Im trying to do is if the user is expert, it goes to the next section of the default.src after the snippit. If they are not expert, it check to see if they are level 10, if so, show them the level 10 menu, if not level 10, take them to the other levels. ããWhat it's doing is if expert mode, the bbs goes offline, if not in expert, all I see is the prompt, no menu. WHere have I gone wrong.ãã------------ Snippit -----------
    --- ------ My Reasoning -------------ã# Display TEXT\MENU\MAIN.* if not in expert modeãcompare_user_misc UM_EXPERT 1. Compare for expertãif_false 2. If not expert, find user levelã compare_ars level 10 3. comparing levelsã if_equal 4. if level 10ã cls 5. clear screen ã menu main_10 6. show level 10 menuã else 7. If not level 10ã cls 8. clear screenã menu main 9. show default menuã end_if 10. end of user level comparison.ãif_true 11. if expert mode is true, gotoã------------ End Of Snippit --------- next section of default.srcããThanks in advanceããSysOp: C.G. Learn, AKA: DesotoFirefliteãValhalla Home Services! - (Synchronet) - bbs.valhallabbs.com:23ãA Gamers Paradise - Over 250 Registered Online Game Doors!ãã--- SENILE.COM found...Out of Memory...ã þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.net
  • From Digital Man@VERT to DesotoFireflite on Thu Jun 9 14:20:45 2022
    Re: Flowã By: DesotoFireflite to All on Thu Jun 09 2022 04:20 pmãã > OK, I'm modifing my default.src to show a defferent level menu for a levelã > 10 user. What Im trying to do is if the user is expert, it goes to the nextã > section of the default.src after the snippit. If they are not expert, itã > check to see if they are level 10, if so, show them the level 10 menu, ifã > not level 10, take them to the other levels.ã >ã > What it's doing is if expert mode, the bbs goes offline, if not in expert,ã > all I see is the prompt, no menu. WHere have I gone wrong.ã >ã > ------------ Snippit -------------- ------ My Reasoning -------------ã > # Display TEXT\MENU\MAIN.* if not in expert modeã > compare_user_misc UM_EXPERT 1. Compare for expertã > if_false 2. If not expert, find user levelã > compare_ars level 10 3. comparing levelsã > if_equal 4. if level 10ã > cls 5. clear screenã > menu main_10 6. show level 10 menuã > else 7. If not level 10ã > cls 8. clear screenã > menu main 9. show default menuã > end_if 10. end of user level comparison.ã > if_true 11. if expert mode is true, gotoã > ------------ End Of Snippit --------- next section of default.srcããYou have 3 if's in that snippet, but only one end_if.ããI think what you mean to write was:ãcompare_user_misc UM_EXPERTãif_falseã compare_ars level 10ã if_equalã clsã menu main_10ã elseã clsã menu mainã end_ifãelseã...ãend_ifããNotice there is an end_if for ever if.ã-- ã digital man (rob)ããThis Is Spinal Tap quote #45:ãI don't really think the end can be assessed as of itself as being the endãNorco, CA WX: 89.0øF, 43.0% humidity, 15 mph S wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From DesotoFireflite@VERT/VALHALLA to Digital Man on Fri Jun 10 14:35:52 2022
    Re: Flowã By: Digital Man to DesotoFireflite on Thu Jun 09 2022 02:20 pmãã DM> Re: Flowã DM> By: DesotoFireflite to All on Thu Jun 09 2022 04:20 pmãã >> OK, I'm modifing my default.src to show a defferent level menu for aã >> level 10 user. What Im trying to do is if the user is expert, it goesã >> to the next section of the default.src after the snippit. If they areã >> not expert, it check to see if they are level 10, if so, show them theã >> level 10 menu, if not level 10, take them to the other levels.ãã >> What it's doing is if expert mode, the bbs goes offline, if not inã >> expert, all I see is the prompt, no menu. WHere have I gone wrong.ãã >> ------------ Snippit -------------- ------ My Reasoningã >> ------------- # Display TEXT\MENU\MAIN.* if not in expert modeã >> compare_user_misc UM_EXPERT 1. Compare for expertã >> if_false 2. If not expert, find userã >> level compare_ars level 10 3. comparing levelsã >> if_equal 4. if level 10ã >> cls 5. clear screenã >> menu main_10 6. show level 10 menuã >> else 7. If not level 10ã >> cls 8. clear screenã >> menu main 9. show default menuã >> end_if 10. end of user levelã >> comparison. if_true 11. if expertã >> mode is true, goto ------------ End Of Snippit --------- nextã >> section of default.src ãã DM> You have 3 if's in that snippet, but only one end_if.ãã DM> I think what you mean to write was:ã DM> compare_user_misc UM_EXPERTã DM> if_falseã DM> compare_ars level 10ã DM> if_equalã DM> clsã DM> menu main_10ã DM> elseã DM> clsã DM> menu mainã DM> end_ifã DM> elseã DM> ...ã DM> end_ifãã DM> Notice there is an end_if for ever if.ããAh, I see, I was looking so hard at what I was tring to do, I forgot a simple rule. I changed one other thing to make it work the way I wanted it to.ããI changed "compare_ars level 10" to "COMPARE_ARS LEVEL = 10"ããNow everything works. The "compare_ars level 10" was giving me everything level 10 and above, so the menu didn't change, but by changing it to "level = 10", it only gaves me the level 10 menu for level 10 users, and the regular menu for everyone else.ããThank You so much for the assist. ããSysOp: C.G. Learn, AKA: DesotoFirefliteãValhalla Home Services! - (Synchronet) - bbs.valhallabbs.com:23ãA Gamers Paradise - Over 250 Registered Online Game Doors!ãã--- Old farts never die! They just smell that way...ã þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.netã