Answers.Body: <p>This comparison is pre-change. For example if I changed my surname from Smith to Jones and setup a condition to check surname = 'Smith' then setting this checkbox (Compare Original) would match to 'Smith' as that was my surname prior to the change I made. Hope that makes sense!</p>
  <p>In terms of your use case - I think you've solved it the right way i.e. having a marker to indicate you've processed the contact already.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-21T22:52:52.637Z
Answers.Text: So then it may not be applicable for some fields? e.g, checkbox.
Answers.UserDisplayName: Andy Burns
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-21T23:03:17.230Z
Answers.Text: In theory it would still work i.e. you could check if the value prior to the change was checked/unchecked. But I think your approach is still the easiest to maintain and monitor.
Answers.UserDisplayName: Parvez Saleh
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-21T23:13:43.947Z
Answers.Text: It doesn't give you the option to say what a given checkbox value field should meet. Agreed though on this solution.
Answers.UserDisplayName: Andy Burns
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-22T21:53:14.473Z
Answers.Text: Ah ok, I guess its a work in progress!
Answers.UserDisplayName: Parvez Saleh
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-21T22:42:02.067Z
Answers.LastActivityDate: 2020-08-21T22:42:02.067Z
Answers.UserDisplayName: Parvez Saleh
Body: <p>There is a checkbox for the field value comparison that is <em>Compare with original value (before the change)?</em></p>
  <p><a href="https://i.sstatic.net/49ugn.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/49ugn.png" alt="enter image description here" /></a></p>
  <p>What functionality does this do? I looked at the docs (<a href="https://docs.civicrm.org/civirules/en/latest/basic-example-field-value-comparison-condition/" rel="nofollow noreferrer">https://docs.civicrm.org/civirules/en/latest/basic-example-field-value-comparison-condition/</a>) but didn't see an explanation.</p>
  <p>My use case is I have a custom field that is a set of checkboxes. I am adding an activity based on a a specific custom field value being selected but I don't want it to do trigger my action (in this case an activity) each time the fieldset is saved if the value is already selected. I thought that this option may be checking if the field value changed but it still added the action.</p>
  <p>FWIW, I created a regular group that the CiviRule adds them to. My condition checks <em>Not in Selected Group</em> [the group] to get it to work.</p>
  
Tags: <civirules>
Title: CiviRules - What does 'Compare with original value (before the change)' do?
ThreadText: # CiviRules - What does 'Compare with original value (before the change)' do?
  
  (Asked by: username_0 on 2020-08-21)
  
  There is a checkbox for the field value comparison that is *Compare with original value (before the change)?*
  
  [![enter image description here](https://i.sstatic.net/49ugn.png)](https://i.sstatic.net/49ugn.png)
  
  What functionality does this do? I looked at the docs (<https://docs.civicrm.org/civirules/en/latest/basic-example-field-value-comparison-condition/>) but didn't see an explanation.
  
  My use case is I have a custom field that is a set of checkboxes. I am adding an activity based on a a specific custom field value being selected but I don't want it to do trigger my action (in this case an activity) each time the fieldset is saved if the value is already selected. I thought that this option may be checking if the field value changed but it still added the action.
  
  FWIW, I created a regular group that the CiviRule adds them to. My condition checks *Not in Selected Group* [the group] to get it to work.
  
  **Tags:** civirules
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-08-21. Score: 2 | Accepted answer
  
  This comparison is pre-change. For example if I changed my surname from Smith to Jones and setup a condition to check surname = 'Smith' then setting this checkbox (Compare Original) would match to 'Smith' as that was my surname prior to the change I made. Hope that makes sense!
  
  In terms of your use case - I think you've solved it the right way i.e. having a marker to indicate you've processed the contact already.
  
  > **Comments:**
  > **username_0**: So then it may not be applicable for some fields? e.g, checkbox.  
  > **username_1**: In theory it would still work i.e. you could check if the value prior to the change was checked/unchecked. But I think your approach is still the easiest to maintain and monitor.  
  > **username_0**: It doesn't give you the option to say what a given checkbox value field should meet. Agreed though on this solution.  
  > **username_1**: Ah ok, I guess its a work in progress!  
  
  ---
  
  