MajorEvo Posted December 13, 2019 Share Posted December 13, 2019 Hi Guys, I'm looking for some help with what you script writers use for tasks that are quite complex. Coming from *****, they have a tree type concept where you have a true or false and can go off onto another "branch", similar to the picture below. Starting at a point: you can start the script, have it then follow down the tree structure. Has anyone else done something similar in OSBot? I don't feel like case statements would be the right thing to do. Quote Link to comment Share on other sites More sharing options...
Kramnik Posted December 13, 2019 Share Posted December 13, 2019 So you want this to implement randomness or just to achieve something to be executed by going through if statements tree? Quote Link to comment Share on other sites More sharing options...
Charlotte Posted December 13, 2019 Share Posted December 13, 2019 Isn't it just if else.... Quote Link to comment Share on other sites More sharing options...
Camaro Posted December 13, 2019 Share Posted December 13, 2019 Deeply nested if statements are a sign of bad programming styles. nevertheless, people do it. A function should only represent one purpose. Quote Link to comment Share on other sites More sharing options...