SCRIPT_BOOL("newList=[]
for x in _arg1:
newList.append(x > 0)
return newList
",SUM([Profit]))
Error processing script IndentationError : expected an indented block (, line 4)
SCRIPT_BOOL("newList=[]
for x in _arg1:
newList.append(x > 0)
return newList
",SUM([Profit]))
Error processing script IndentationError : expected an indented block (, line 4)
I'm not completely sure what you're asking, but try writing the script like this:
newList=[]
for x in _arg1:
newList.append(x > 0)
return newList
That has the proper indentation.
From a quick read of the TabPy GitHub page, the following code should work but is untested and so provided as is:
SCRIPT_BOOL("newList=[]
for x in _arg1:
newList.append(x > 0)
return newList",SUM([Profit]))
If you want to have a multiline string, you must use the syntax """I am a multiline string"""
instead of "I am not a multiline string"
.