Post Reply 
How does python work?
09-07-2021, 12:06 PM
Post: #6
RE: How does python work?
Maybe the PYTHON command is what you are looking for?

Code:
#PYTHON test
import sys
from builtins import float
def func1(a, b):
    return a + b

def func2(a, b):
    return a - b

def func3(a, b, c):
    if c == 0:
        return func1(a, b)
    else:
        return func2(a, b)
print(func3(float(sys.argv[0]),float(sys.argv[1]),float(sys.argv[2])))
#end

EXPORT func3(a,b,c)
BEGIN
 PYTHON(test,a,b,c);
END;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
How does python work? - hamorabi - 09-06-2021, 04:37 PM
RE: How does python work? - Dougggg - 09-06-2021, 04:53 PM
RE: How does python work? - hamorabi - 09-06-2021, 05:01 PM
RE: How does python work? - roadrunner - 09-06-2021, 08:15 PM
RE: How does python work? - hamorabi - 09-07-2021, 07:45 AM
RE: How does python work? - roadrunner - 09-07-2021 12:06 PM
RE: How does python work? - hamorabi - 09-07-2021, 09:24 PM
RE: How does python work? - roadrunner - 09-07-2021, 10:05 PM
RE: How does python work? - hamorabi - 09-08-2021, 10:48 AM
RE: How does python work? - roadrunner - 09-08-2021, 11:08 AM



User(s) browsing this thread: 1 Guest(s)