currently the echo result will append after endif directive.
currently the echo result will append after endif directive.