Rhinoscript:pseudocode
From ksteinfeWiki
If macro development is like training a puppy, script development is more like writing a recipe. With scripts, you may store and recall information, measure out quantities of ingredients and set them aside for later, and define basic procedures (like whisking or yeast proofing), to be repeated again and again from recipe to recipe.
somenumber = Rhino.GetReal("Line coordinate")
line = Rhino.AddLine(Array(0,0,0), Array(somenumber,somenumber,0))
If IsNull(line) Then
Rhino.Print "Something went wrong"
Else
Rhino.Print "Line curve inserted"
End If
This little script can be interpreted as something like this:
Ask Rhino to assign a number to something called 'somenumber'.
Tell Rhino to add a line from the world origin to the point on the x-axis indicated by 'somenumber'
If the result of the previous operation was not a curve object, then
print a failure message
otherwise
print a success message
Note: this example lifted shamelessly from rhinoscript101 by David Rutten
