Answers.Body: <p>You should be able to check for this like so:</p>
  
  <pre><code>if($params['isNewEntry'])
  {
   // The entry is new
  {
  else
  {
   // The entry is being updated
  {
  </code></pre>
  
  <p>See here in the docs: <a href="http://buildwithcraft.com/docs/plugins/events-reference#entries-onBeforeSaveEntry" rel="nofollow">http://buildwithcraft.com/docs/plugins/events-reference#entries-onBeforeSaveEntry</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-26T11:36:38.713Z
Answers.Text: Cheers @AlecRitson perfect
Answers.UserDisplayName: Lettie
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-26T10:44:45.710Z
Answers.LastActivityDate: 2015-08-26T11:41:39.877Z
Answers.LastEditDate: 2015-08-26T11:41:39.877Z
Answers.UserDisplayName: Alec Ritson
Body: <p>I have a plugin using the onBeforeSaveEntry event. Is there a simple way to check if the entry being saved is a brand new entry i.e. Add New Entry or if it currently exists and is just being updated?</p>
  
Tags: <entries><plugins><entry>
Title: Check saved entry is a brand new entry
ThreadText: # Check saved entry is a brand new entry
  
  (Asked by: username_0 on 2015-08-26)
  
  I have a plugin using the onBeforeSaveEntry event. Is there a simple way to check if the entry being saved is a brand new entry i.e. Add New Entry or if it currently exists and is just being updated?
  
  **Tags:** entries, plugins, entry
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-08-26. Score: 4 | Accepted answer
  
  You should be able to check for this like so:
  
  ```
  if($params['isNewEntry'])
  {
   // The entry is new
  {
  else
  {
   // The entry is being updated
  {
  
  ```
  
  See here in the docs: <http://buildwithcraft.com/docs/plugins/events-reference#entries-onBeforeSaveEntry>
  
  > **Comments:**
  > **username_0**: Cheers @username_1 perfect  
  
  ---
  
  