Here is an example of my issue:
condition=m>0; f[m_] = Which[condition == True, 1, condition == False, 2] f[-10]
Which[(m > 0) == False, 2]
Why? I do not understand. What is even more odd is that flipping order inside "which", reverses where the problem occurs.
condition = m > 0; f[m_] = Which[condition == False, 2, condition == True, 1]; f[-10]
but the function now fails for say $f$.
I know that I can fix the issue just by saying $m>0$ and $m<0$ but the conditions in my real code are much more complicated so I cannot do that. I must be making some syntax error. Thank you.