ok i have a problem using the command arraywrite, because at the compiler doesnt recognise it and it wont make it CAPITAL and bold

Code:
arraywrite ndays,[0,31,28,31,30,31,30,31,31,30,31,30,31]
numofdays=ndays[month]
then i tried to use it as well as following

Code:
arraywrite ndays,13,NDAY,[0,31,28,31,30,31,30,31,31,30,31,30,31]
where the NDAY
Code:
NDAY:
ndays[0] = 0
ndays[1] = 31       'January
ndays[2] = 28       'February
ndays[3] = 31       'March
ndays[4] = 30       'April
ndays[5] = 31       'May
ndays[6] = 30       'June
ndays[7] = 31       'July
ndays[8] = 31       'August
ndays[9] = 30       'September
ndays[10] = 31      'October
ndays[11] = 30      'November
ndays[12] = 31      'December
But no luck, compiler was telling me that there is a syntax error.

So i tried to use the lookup command

Code:
day_added = 0           
hh = hh + 3             'the Hour from GPS is UTC so for our country in Greece we add +3
if  hh > 23 then        'if the hh+3 hour is greater than 23 (23:00) then
day_added = 1           'we check the day added is true
endif
hh = hh//24             'but the hour not exceed the 24 so go to 00:00
if day_added = 1 then   'now if day added is true
day = day + 1           'then ADD 1 day
if day > Numofdays then   'if day is greater than the numbers of the days in this month
lookup month,[0,31,28,31,30,31,30,31,31,30,31,30,31],numofdays 'here it is suppose to look at a table NDAYS for each month
day = 1                 'then day goes to number 1
if month > 12 then 'if month is greater than 12 which is December
month = 1             ' then month will go to 1, January
year = year +1      ' and the year will increase by 1
if ((year//4 = 0) and (year//400 != 0)) then
year = 1
if month = 2 then numofdays = numofdays + 1
    endif
      endif
        endif
            endif
But i dont know if code is ok, because i Still havent specified the lookup table.

One more question. at the following line:
Code:
if ((year//4 = 0) and (year//400 != 0))
the AND in the middle of the statements is says that statement 1 in order to be true , the statement 2 need also to be true. Is that right?

Because as far as i understand, the statement 1 : year//4 = 0 is that we have every 4 years a leap year, then the statement 2: year//400 !=0 which != is not equal.

Could you tell me what does the code in this line mean?

Code:
if ((year//4 = 0) and (year//400 != 0))
thanks once again for your time. I know that is difficult for you to explain to someone that tries to understand even the basics. but believe me i search these days in the web for more info about picbasic pro, and in the forum here, but i cannot understand me things because i feel that are not a clear as should be for someone would like to start from zero.