Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions trigger
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ trigger UpdatAccount on Account (before insert,before update) {
if(Trigger.isUpdate)
{
integer count=0;
for(Account aa:Trigger.new)
for(Account account:Trigger.new)
{
if(aa.AnnualRevenue==100)
if(account.AnnualRevenue==100)
{
aa.Name='Update from Trigger';
account.Name='Update from Trigger';
count++;
}
}
System.debug(count);

}

}