public function get_last_qt_var($name, $default = null) {
        $step = $this->get_last_step_with_qt_var($name);
        if ($step->has_qt_var($name)) {
            return $step->get_qt_var($name);
        } else {
            return $default;
        }
    }
public function get_last_qt_var($name, $default = null) {
        $step = $this->get_last_step_with_qt_var($name);
        if ($step->has_qt_var($name)) {
            return $step->get_qt_var($name);
        } else {
            return $default;
        }
    }
public function get_last_qt_var ( $ name , $ default = null ) { $ step = $ this -> get_last_step_with_qt_var ( $ name ) ; if ( $ step -> has_qt_var ( $ name ) ) { return $ step -> get_qt_var ( $ name ) ; } else { return $ default ; } }
Get the latest value of a particular question type 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.
Get the latest value of a particular question type variable . That is get the value from the latest step that has it set . Return null if it is not set in any step .