I have a free text field (Say 'Comment') which contains lot of information. I want to create a new field based on 3 conditions.
1. If the field 'comment' contains value 'Pay', I want the new field to be created with pay and following 10 letters.
2. If the field contains 'nopay' or 'donotpay', I want the field to be updated with nopay and donotpay respectively.
3. If the above three keywords are not found, I want the new field to be updated with 'check'.
Example:
| Comment | New field output |
| Transaction 4584838790 pay3546779890 Coded 758u498 | pay3546779890 |
| Large item 4584838790 nopay Name 758u498 | nopay |
| Small item 45848387976 donotpay Mandy 758u498 | donotpay |
| Medium size carrot gold finger 86482928749 | check |