AAJ 185 Posted April 5, 2022 Share Posted April 5, 2022 Hello, I have set up a task that includes the if-else and is simplified to make the function easier to read. Anyway, what I want is, how do I add more than one simplified condition? (item.vnum >= 11200 and item.vnum <= 11289 or item.vnum >= 11400 and item.vnum <= 11489 or item.vnum >= 11600 and item.vnum <= 11689 or item.vnum >= 11800 and item.vnum <= 11889 and " yes " or " no ") It only works to specify the last condition if it is yes or no item.vnum >= 11800 and item.vnum <= 11889 Link to comment Share on other sites More sharing options...
Developer Solution PACI 930 Posted April 5, 2022 Developer Solution Share Posted April 5, 2022 Put the entire condition inside parenthesis: (item.vnum >= 11200 and item.vnum <= 11289 or item.vnum >= 11400 and item.vnum <= 11489 or item.vnum >= 11600 and item.vnum <= 11689 or item.vnum >= 11800 and item.vnum <= 11889) and " yes " or " no " 1 when you return 0 and server doesn't boot: Link to comment Share on other sites More sharing options...
AAJ 185 Posted April 5, 2022 Author Share Posted April 5, 2022 (edited) 11 hours ago, PACI said: (item.vnum >= 11200 and item.vnum <= 11289 or item.vnum >= 11400 and item.vnum <= 11489 or item.vnum >= 11600 and item.vnum <= 11689 or item.vnum >= 11800 and item.vnum <= 11889) and " yes " or " no " Really that easy thanks you Edited April 5, 2022 by AAJ Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now