ferite refuses to compile the script if I use >=. any ideas???

SVN revision: 5932
This commit is contained in:
bdsabian 2002-02-13 09:43:59 +00:00 committed by bdsabian
parent dcb669d3e3
commit 55f5d03b2f
1 changed files with 3 additions and 2 deletions

View File

@ -21,9 +21,10 @@ function clock_update(object data, number val){
string seconds = String.copySection(time,6,8);
string timeofday = "AM";
if(hour>=12){
if(hour > 12 || hour==12){
/* if(hour >= 12){*/
timeofday = "PM";
hour = hour - 12;
hour -= 12;
}
else if(hour==0) hour = 12;