How to print the String value after checking the Boolean variable is true or false without using if activity

i need a solution to print the string value after checking the Boolean variable is true or false and i need the string which is corresponding to true or false without using if activity…

Kindly check it the below one…

If(isVerificationResult=True, then LogMessage(“Successfully land on the Dashboard screen with My Savings Account card displayed on top”,“”))

so i want a solution that need to reflect based on true or false condition i want to print the corresponding string based on true or false…

Kindly help me with this solution

Hello,

If you dont want to use if activity you can try this:

  1. Declare a string variable strLogMessage
  2. In assign activity:
    strLogMessage = If(isVerificationResult=True, “Successfully land on the
    Dashboard screen with My Savings Account card displayed on top”,“”)
  3. Use log message activity and print strLogMessage

Hope this is what you are looking for.

Thanks,
Athira

Booleans are either True or False, you don’t need to check with “=True” or “=False” so you only need…

If(isVerificationResult,“true message”,“false message”)

Also, the second and third parameters can be literals (as I have here) or they can be variables or they can be expressions.

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