original_string: public function get_last_behaviour_var($name, $default = null) {
          foreach ($this->get_reverse_step_iterator() as $step) {
              if ($step->has_behaviour_var($name)) {
                  return $step->get_behaviour_var($name);
              }
          }
          return $default;
      }
code: public function get_last_behaviour_var($name, $default = null) {
          foreach ($this->get_reverse_step_iterator() as $step) {
              if ($step->has_behaviour_var($name)) {
                  return $step->get_behaviour_var($name);
              }
          }
          return $default;
      }
code_tokens: public function get_last_behaviour_var ( $ name , $ default = null ) { foreach ( $ this -> get_reverse_step_iterator ( ) as $ step ) { if ( $ step -> has_behaviour_var ( $ name ) ) { return $ step -> get_behaviour_var ( $ name ) ; } } return $ default ; }
docstring: Get the latest value of a particular behaviour variable. That is,
  get the value from the latest step that has it set. Return null if it is
  not set in any step.
  
  @param string $name the name of the variable to get.
  @param mixed default the value to return in the variable has never been set.
  (Optional, defaults to null.)
  @return mixed string value, or $default if it has never been set.
docstring_tokens: Get the latest value of a particular behaviour variable . That is get the value from the latest step that has it set . Return null if it is not set in any step .