I have three statements in a if condition and they are executed when the logical operations are true. For example I have two variables a and b, and their values are:
a=7; b=5; if a=7 && b=a || b<a do something end
Can someone please tell me what is the correct way to perform second operation (b=a | | b<a) first, and then do && operation between the result and the first statement (a=7)?
Best Answer