In a Javascript program to convert a Julian day to a calendar day, the following code is seen:
month = (G<13.5) ? (G-1) : (G-13)
year = (month<2.5) ? (C-4715) : (C-4716)
I thought these may have been some sort of conditions that changed the values of month
or year
according to the values of the variables within their declarations My research has returned nothing on these symbols--particularly the "?"--showing up in Javascript code.
For a complete view of the source, visit astronomy.villanova.edu/links/jd.htm
Any help would be greatly appreciated!