mitachky Posted March 27, 2018 Report Share Posted March 27, 2018 Hi, I was just wondering is there any way to separate my code like an "if else" statement in C. For example. If a condition is met, I would like to run only a selection of 10 lines of code and if the same condition is not met, I want to run a different 10 lines of code. Thanks in advance! Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted March 27, 2018 MVP 2023 Report Share Posted March 27, 2018 Sure, place your conditional code in separate subroutines and call the appropriate one based on which condition is met. Link to comment Share on other sites More sharing options...
mitachky Posted March 27, 2018 Author Report Share Posted March 27, 2018 Just now, Flex727 said: Sure, place your conditional code in separate subroutines and call the appropriate one based on which condition is met. Thank you very much sir! Will try that. Link to comment 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