Jan-04-2021, 12:06 PM
Hi
I want to set a if condition based on the value of test_final. Sometimes there is no value in test_final if no items are found.
For such cases, I tried to set the if condition based on None or "", but it doesn't work. The code just doesn't enter the if loop, even when test_final is empty. Thank you.
I want to set a if condition based on the value of test_final. Sometimes there is no value in test_final if no items are found.
For such cases, I tried to set the if condition based on None or "", but it doesn't work. The code just doesn't enter the if loop, even when test_final is empty. Thank you.
test=[] some code to insert items to test test_final=",".join(test) if test_final=="" or test_final==None: print('Hello')