public static function ToString($Conditions) {
      $Result = '';

      foreach ($Conditions as $Condition) {
         if (!is_array($Condition) || count($Condition) < 2)
            continue; // skip ill-formatted conditions.

         if (strlen($Result) > 0)
            $Result .= "\n";

         $Result .= "{$Condition[0]},{$Condition[1]}";
         if (count($Condition) >= 3) {
            $Result .= $Condition[2];
         }
      }
      return $Result;
   }