
    # @begin MyScript
    # @in  x @as XCoordinate
    # @in  y @as YCoordinate
    # @out d @as DistanceFromOrigin

      # get input x somehow
      # get input y somehow

      # @begin SquareCoordinates
      # @in  x  @as XCoordinate
      # @in  y  @as YCoordinate
      # @out xx @as XSquared
      # @out yy @as YSquared
      script statement
      script statement  
      # @end SquareCoordinates

      # @begin SumSquares
      # @in  xx @as XSquared
      # @in  yy @as YSquared
      # @out s  @as SumOfSquares
      script statement
      script statement  
      # @end SumSquares

      # @begin TakeSquareRoot
      # @in  s @as SumOfSquares
      # @out d @as DistanceFromOrigin
      script statement  
      script statement
      # @end TakeSquareRoot

      # output d somehow

    # @end MyScript