You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If the true_result or the false_result contains a list type value, the IF condition operator returns the list of values instead of a single value.
The number of elements depends on the length of the list.
To Reproduce
importformulasparser=formulas.Parser()
func=parser.ast('=IF(A1, A2, A3)')[1].compile()
func(True, 1, [1,2,3]) # result is Array([1, 1, 1], dtype=object)func(False, 1, [1,2,3]) # result is Array([1, 2, 3], dtype=object)func(True, [1,2,3], 1) # result is Array([1, 2, 3], dtype=object)func(False, [1,2,3], 1) # result is Array([1, 1, 1], dtype=object)
Expected behavior
return single value instead of list
Screenshots
If applicable, add screenshots to help explain your problem.
Describe the bug
If the true_result or the false_result contains a list type value, the IF condition operator returns the list of values instead of a single value.
The number of elements depends on the length of the list.
To Reproduce
Expected behavior
return single value instead of list
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: