function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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 <=