Staff Answer
Dec 11, 2019 - 03:32 AM
Hi,
The above script should read as follows (note, I did not test it, so hopefully there are no typos, but the general concept is there. Please check that the "great than" and "less than" are correct.):
IF ($sw .LT. 0.5) THEN
$yo = 0.0
ELSEIF ($sw .GT. 1.5) THEN
IF ($yi1 .GT. $yi2) THEN
$yo = $yi1 - $yi2
ELSEIF ($yi1 .LT. -$yi2) THEN
$yo = $yi1 + $yi2
ELSE
$yo = 0.0
ENDIF
ELSEIF ($yi1 .GT. $yi3) THEN
$yo = $yi1 - $yi3
ELSEIF ($yi1 .GT. -$yi3) THEN
$yo = $yi1 + $yi3
ELSE
$yo = 0.0
ENDIF
You can check out one of our webinars on how to make custom components - this goes over the basics and some of the scripting aspects as well, which may provide you with additional information.
Lastly, on our Knowlege Base website you can find lots of information.
Regards,
Mathias
Add New Comment