I am unsure why I am getting the error at "end." I am thinking maybe I have to exchange it for "endif." I am confused how this error allows "x" to remain an output but does not detect "t" as an output. I tried to learn more about MathScript formatting for help. This was my first time using it. Any critiques are welcome.