# Create script line

**URL:** <https://forum.universal-robots.com/t/create-script-line/2284>\
**Category:** URScript\
**Created:** [July 11, 2018, 8:06am UTC](https://forum.universal-robots.com/t/create-script-line/2284 "2018-07-11T08:06:00Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![anon82484413](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@anon82484413](https://forum.universal-robots.com/u/anon82484413)\
**Post date:** [July 12, 2018, 5:27am UTC](https://forum.universal-robots.com/t/create-script-line/2284/4 "2018-07-12T05:27:34Z")

</div>

The problem I hoped to get around with this, is related to this [Create waypoint with variable - #3 by michael.andresen](https://forum.universal-robots.com/t/create-waypoint-with-variable/2276/3), where I had hoped I could make a more simple program tree. Every time the robot comes to the urcap, it needs to go to a different position than last time. I already got the pose it needs to go to in a variable, I just can’t figure out how to make it use that variable.

My current solution got the script doing everything, but I want it to be more flexible and easier to add and modify.

---

_[View the full topic](https://forum.universal-robots.com/t/create-script-line/2284)._
