SOLVED
Dynamic Replace and Expression
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
jenettd
7 - Meteor
‎01-17-2025
06:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
I'm using the Dynamic Replace tool to find values in a field and attach a rule to them. I'm using an excel spreadsheet that has a list of the rules. The expression I'm using isn't working. I want it to find values not equal to Yes or No and attach the Fail rule (under the RuleEval column) to them. The expression is only finding values that don't equal Yes and not looking at the "No" part of the expression and attaching the Fail rule to them.
This is what is in my Rules spreadsheet -
New Field | Rule | Expression | RuleEval |
RuleEval | 9 | [Rule]=9 AND [Value] != "Yes" OR "No" | Fail - Does not contain Yes or No |
This is the output. It is failing the No values when it shouldn't.
Value | RuleEval |
No | Fail - Does not contain Yes or No |
No | Fail - Does not contain Yes or No |
No | Fail - Does not contain Yes or No |
Solved! Go to Solution.
Labels:
- Labels:
- Expression
2 REPLIES 2
17 - Castor
‎01-17-2025
06:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@jenettd Close! Try changing your expression to something like this:
[Rule]=9 AND [Value] Not in ( "Yes","No")
‎01-17-2025
07:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
That worked! Thank you!
