+ Start a Discussion
sd2008sd2008 

"Unexpected Token : "?

trigger AcctUpdateTrigger on Account (before insert, after update) {

 

   for(Account a: Trigger.New){

     Datetime mytime = datetime.now();

     Integer h = mytime.hour();

      if (h =< 18)

           {

                    if (a.RecordTypeID=='012400000000ztBAAQ')

              {

                function_Outcall.SaveAcct(a.AccountNumber);

               }

          }

     }

}

 

I got a "Unexpected Token : " error message.

what is wrong with it?

Best Answer chosen by Admin (Salesforce Developers) 
AishAish
instead of =< , do <=