original_string: public function set_condition($conditionparam, $conditionvalue) {
          // We only resolve the condition if the parent of the element (optigroup) already has parent
          // else, we'll resolve it once the optigroup parent is defined
          if ($this->get_parent() && $this->get_parent()->get_parent() && $conditionparam !== null) {
              $this->procconditionparam = $this->find_element($conditionparam);
          }
          $this->conditionparam = $conditionparam;
          $this->conditionvalue = $conditionvalue;
      }
code: public function set_condition($conditionparam, $conditionvalue) {
          // We only resolve the condition if the parent of the element (optigroup) already has parent
          // else, we'll resolve it once the optigroup parent is defined
          if ($this->get_parent() && $this->get_parent()->get_parent() && $conditionparam !== null) {
              $this->procconditionparam = $this->find_element($conditionparam);
          }
          $this->conditionparam = $conditionparam;
          $this->conditionvalue = $conditionvalue;
      }
code_tokens: public function set_condition ( $ conditionparam , $ conditionvalue ) { // We only resolve the condition if the parent of the element (optigroup) already has parent // else, we'll resolve it once the optigroup parent is defined if ( $ this -> get_parent ( ) && $ this -> get_parent ( ) -> get_parent ( ) && $ conditionparam !== null ) { $ this -> procconditionparam = $ this -> find_element ( $ conditionparam ) ; } $ this -> conditionparam = $ conditionparam ; $ this -> conditionvalue = $ conditionvalue ; }
docstring: Sets the condition for this optigroup
docstring_tokens: Sets the condition for this optigroup