Ranter
Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Comments
		- 
				
				
Grumm18943yIt is an else if...
So if months display # of months.
If days, display # of days else display hours...
the > 1 is correct too. It will only trigger the first case above 2. (1 month ::: 2 monthS) - 
				
				
Jedidja9333y@joas if months is 0 wouldn't that mean that the "if (months)" evalutes to false?
I'm not sure which language I'm looking at but in some it would skip this block - 
				
				@Jedidja it is javascript
And yes you are right
If it 0 "if" will return false . That's why i said crazy interns 
Related Rants
- 
						
							
Noob26A story about how a busy programmer became responsible for training interns. So I was put in charge of a tea... - 
						
							
Noob33The programmer and the interns part 2. We will discuss numerous events that happened over the past week or so... - 
						
							
mkdirLuci412
Maintaining software built by interns who have all quit by now and made zero documentation 

Crazy interns
It will be always true😂
joke/meme
crazy
ternary
interns