Argonium Posted February 3, 2020 Share Posted February 3, 2020 I usually use "continue" in loops to remove unwanted things, but its missing? Is there any "continue" statement in DS/DST? Link to comment https://forums.kleientertainment.com/forums/topic/115457-is-continue-missing-in-ds/ Share on other sites More sharing options...
Ultroman Posted February 4, 2020 Share Posted February 4, 2020 (edited) It's not DS/DST that doesn't have "continue". Lua, the scripting language we write mods in, doesn't have "continue" It has "break" and "goto", which can be used to sort of mimic a "continue" (read the two top answers AND the comments(!!!))), but those workarounds are generally disliked, so we just try to write our code in ways which do not require a "continue" (like the link shows). Usually, this results in nested if-statements and/or subsequent if-statements and the use of a bool saying whether to skip the rest of the if-statements (which all check that that bool is not true before doing their actual checks). Edited February 8, 2020 by Ultroman Link to comment https://forums.kleientertainment.com/forums/topic/115457-is-continue-missing-in-ds/#findComment-1304547 Share on other sites More sharing options...
Jessie_ Posted February 7, 2020 Share Posted February 7, 2020 just a note that since dst uses lua5.1, it has no "goto" statement like in the first answer in the link above 1 Link to comment https://forums.kleientertainment.com/forums/topic/115457-is-continue-missing-in-ds/#findComment-1305370 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now