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
If you dont want to use if activity you can try this:
- Declare a string variable strLogMessage
- In assign activity:
strLogMessage = If(isVerificationResult=True, “Successfully land on the
Dashboard screen with My Savings Account card displayed on top”,“”)
- Use log message activity and print strLogMessage
Hope this is what you are looking for.
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.