taekwondokid42
New Member
- Messages
- 268
- Reaction score
- 0
- Points
- 0
I am wondering if there is a way to modify a function with code, for example a forloop or something.
Example:
function dostuff() {
otherfunction1;
otherfunction2;
otherfunction5;
}
based on user input (which could be infinitely varied), I want to be able to change dostuff(), so that in one case it would call of5 first and then of2 and not call of1 at all.
Am I clear and is this possible?
Example:
function dostuff() {
otherfunction1;
otherfunction2;
otherfunction5;
}
based on user input (which could be infinitely varied), I want to be able to change dostuff(), so that in one case it would call of5 first and then of2 and not call of1 at all.
Am I clear and is this possible?