SOLVED
IF contains
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
harithad1
7 - Meteor
‎07-24-2024
01:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
Need help with the expression to be used to get the result column. If check 1 & Check 2 contains "Pass", then the result should be true otherwise false.
Check 1 | Check 2 | Result |
Validation check : Pass | Validation check : Fail | FALSE |
Validation check : Pass | Validation check : Pass | TRUE |
Validation check : Fail | Validation check : Pass | FALSE |
Validation check : Fail | Validation check : Fail | FALSE |
Solved! Go to Solution.
Labels:
- Labels:
- Expression
4 REPLIES 4
16 - Nebula
‎07-24-2024
02:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
endswith([Check 1], 'Pass') and endswith([Check 2], 'Pass')
‎07-24-2024
02:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@PhilipMannering Thanks for this.
But what if the column 1 and 2 are not ending with Pass or Fail but with some other word. Lets say " Validation check : Pass customer". In this case, what expression can be used?
Mathias_Nielsen
9 - Comet
‎07-24-2024
02:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
HI @harithad1 ,
This will look for "pass" anywhere in the two check columns and only return "TRUE" if it exsists in both columns.
if Contains([Check 1], "pass") and Contains([Check 2], "pass") then "TRUE" else "FALSE" endif
Hope this works for you :)
‎07-24-2024
02:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
That worked, thank you @Mathias_Nielsen
