if(true) Is it pointless?
I have seen a javascript condition on a web page which was `if(true){//...}` condition. At first i thought it is totally pointless. Then i thought there can be some cases where it is not totally pointless. 

For example
 
We can determine condition parameter on server side which will produce javascript code if(true) or if(false) and this code will look pointless on client side who read that javascript code. 

Is it totally pointless to produce such a code ? 
What do you think about my example ? Can it be ok in that case ?
if(true) Is it pointless?
===

I have seen a javascript condition on a web page which was `if(true){//...}` condition. At first i thought it is totally pointless. Then i thought there can be some cases where it is not totally pointless. 

For example
 
We can determine condition parameter on server side which will produce javascript code if(true) or if(false) and this code will look pointless on client side who read that javascript code. 

Is it totally pointless to produce such a code ? 
What do you think about my example ? Can it be ok in that case ?