Advance Developer Assignment 1 Element Exist boolean variable changes when exiting activity

I am checking system 1 login. The Element Exist activity set the variable loginSuccessful to false. When the following If Activity shows the same variable (loginSuccessful) equal to true and does not perform the activities for a failed login

Element Exist:
image

IF Activity:
image

1 Like

If Element Exists, loginSuccessful (the output of this activity) will be set to TRUE.

1 Like

HI @Tammy

In your second screenshot, The variable loginSuccessful is assigned with the value True. And in your IF condition the condition you are checking is:
Not LoginSuccessful -
If LoginSuccessful is “True”, by adding Not in front will change the condition as : If LoginSuccessful is Not True - Execute the THEN part of the IF condition, else execute the ELSE part of the condition

If LoginSuccesfu is “False” by adding Not in front will change the condition as : IF loginSucessful is Not False - Execute the ELSE part of the condition, else execute the THEN part of the condition

Thanks, I appreciate the help

1 Like

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