It makes no difference, choose one and stick to it for consistency. (value == variable) is a relic from older languages where you can randomly assign a value to a variable in if if (a = 0) instead of (a == 0)
They both turn (efficiently) into the same command instruction, so there will be no difference in performance
Oleksi
source share