I'm not sure where this code comes from, but as you pointed out, it will always execute. As for why you do this, there are times when you want to see what the result of the branch code will be without having to set up your environment. In this case, you can comment on the actual value and replace it with if(1) instead for testing:
// if( ... some hard to achieve condition ) if (1) { // Now you can see what happens if this value is set quickly google_conversion_value = 1; }
Of course, the problem is that it is sometimes easy to forget to remove if(1) and uncomment the proper state.
source share