When you write custom condition you have access same objects as scrip action, so its worth to read basics section on WriteCustomAction article.
When you write a custom condition you have access to the same objects as scrip action has, so its worth it to read basics section of WriteCustomAction article.