i was wondering why the outcome of true and false scripted in python is not working…
so if x is greater than y, the out should be IN or otherwise IN. but, for the both true and false case, outcome is the same. they produce outcome as IN even if its false.
I think that the problem is that your
IN is a list, and not a bool.
Have you tried replacing
condition = IN by condition =
Because your condition is a list
you walk taliste or flatten
it works! thank you! i tried to flatten but didnt work before. thanks again!
hello! can i ask one more question?
if i input several values, the outcome is not working properly. true and false the same outcome…
In that case, you would have to iterate on both yours conditions and your sublists.
I’m guessing you would want something like that :
condition = IN closedStrirrups = IN ushapeStirrups = IN output =  for i in range(len(condition)): if(condition[i]) : output.append(closedStirrups[i]) else: output.append(ushapeStirrups[i]) OUT = output
Is that what you were trying to achieve ?
yesssss thank you so much!