smlogan said:y1 = -40.0foreach(y1 '(27.0 150.0 -40.0)
y1 = -40.0
foreach(y1 '(27.0 150.0 -40.0)
Shawn - this is absolutely unnecessary. SKILL doesn't require you to "declare" variables - and the type of a variable may change over time. In fact the foreach will cause a local variable y1 to be defined for the duration of the foreach - when the foreach completes, the previous value will become visible again (or if it was not defined, it will be unbound). That's fine...
I looked at the latest code posted by Yen, and it works OK (I had to adjust it to reflect signal names in my own testcase ,but apart from that it worked fine).
The most likely issue was that you may have accidentally had:
i.e. a space between the temp and the open parenthesis. This would have caused temp to be seen as a variable, followed by a function call to a function called y1. And that would result in:
*Error* eval: unbound variable - temp*Error* load: error while loading file - "forum.ocn" at line 43