I want to handle my self defined conditions under which my application is properly working. These conditions are given, when no hand, exact one hand or two hands of different typ are tracked, respectively exist in hands list of the actual processed frame. I request and process the actual frame in the rendering loop of my application, which i invoke over a timer several times in one second. My approach is to check the given hands list, if it holds more than two hands or both hands are of same type, than draw a simple warning screen. In all other cases i process further. I do not exactly know, if i can only go over if/else or switch statement. Or at all, if this is a good approach to handle that. So iam thankful to get some hints.
Ps.: I code in c++ in combination with opengl.