alDenteThree function

bool alDenteThree(
  1. dynamic fFunc,
  2. dynamic sFunc,
  3. bool condition
)

functions roll until condition is set (but no more than 3 times) logic not checked lol

Implementation

//TODO  teamAdm Function :  hkl   too complicated
///  logic not checked    lol
bool alDenteThree(var fFunc, var sFunc, bool condition) {
  //  supposing; condition =   false at the beginning.
//TODO  teamDev  stupid name /  condition makes .. troubles
  num _x = 0;
  bool _f = false;
  bool _s = false;
  do {
    _f = fFunc();
    _s = sFunc();
    _x++;
    if (_f == true) {
      if (_s == true) {
        (condition = true);
        isAlDente = true;
      }
    }
    ;
    if (_x == 3) (condition = true);
  } while (condition);
  return condition;
}