Yes, 0 always false, and 1 always true.
However, as you can see in the code, the company considers this to be its trade secret:
COPYRIGHT 2009 ESRI TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL Unpublished material - all rights reserved under the Copyright Laws of the United States and applicable international laws, treaties, and conventions.
Usually obfuscating such code (i.e. makes it difficult to read). One way is to insert useless statements like the if(1) and if(0) that you saw.
Read more about Obfuscation here .
Another possible explanation is that these if are used instead of real logic that has not yet been implemented, as mentioned in @mvbl.
source share