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! Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted March 27, 2018 MVP 2022 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. Quote 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.