Skip to main content
Skip table of contents

Sub Command

Overview

The Sub Command is a function that begins with def and ends with colon (:). The beginning and end of a function are specified by an indentation of the code.

The interface and implementation are not separated. However, they must have been defined before they are used. An error occurs if the function name is the same as a reserved word or interpreter’s internal function name.

Property

Annotation

You can insert text in the description, unique meaning, or nickname for each Parameter to differentiate from many DRL Components.

Example

DRL Code

PY
# Example
def fn_Times(a, b):
  return a * b

fn_Times (10, 10)

def fn_Times(a, b):
   return a * b

tp_log(str(fn_Times(10, 5)))
#expected result: 50

def movej():    
  return 0   	# movej should not be used as a function name as interpreter
		# internal function name

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.