Creating a custom message in the verify control attribute activity

Hi Guys
When I use the verify control attribute activity i get the following output message when it passes
Verification passed. The output value of ‘Exists’: ‘False’ was equal to the expected value ‘False’

and when it fails it gives the following

Verification failed. The output value of ‘Exists’: ‘True’ was not equal to the expected value ‘False’

I checked the settings and i know that {result} returns true or false but is there a way to make it return only

Verification Passed or Verification Failed

or is there a way to add a ternary operator into the outputMessageFormat activity to give it specific messages depending on whether it passed or failed?

Thanks.

Hey @mhaniff

After getting output as boolen: True or False.

Use assign activity:

str_OutputMessage = If(bool_Output,"Verification Passed","Verification Failed")

Note: str_OutputMessage is a String Variable & bool_Output is boolean output variable of Verify Control Activity

Screenshot for your reference:

Regards,
Ajay Mishra

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.