Or operator vs If then else

Hi all.  I'm trying to make a performance approvement in our app.  I see a lot of “OR” statements in Xpath and Exclusive Split. I was always taught to avoid OR statements….   Which is faster? An OR / AND statement or an IF THEN ELSE statement. (Could also be an added ELSE IF).   Please let me know :) Thanks in advance
1 answers

The OR Operation is only a Problem when it is used in an xpath statement and has associations on both sides. If you compare variables or attributes, it is safe to use or.