fork download
  1. trigger acctrigger on Account (before insert){
  2. for(Account acc : trigger.new){
  3. add(acc.industry = 'education');
  4. if (acc.description = null){
  5. add(acc.description = 'account description is this');
  6. }
  7. }
  8. }
Success #stdin #stdout #stderr 0.01s 10088KB
stdin
Standard input is empty
stdout
Object: nil error: did not understand #acctrigger
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
UndefinedObject(Object)>>doesNotUnderstand: #acctrigger (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:1)
Object: nil error: did not understand #insert
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
UndefinedObject(Object)>>doesNotUnderstand: #insert (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:1)
stderr
./prog:2: parse error, expected '}'