Element exists action to set variable to true

I am trying to use the element exists activity to set a Boolean value inside its output to ensure a successful log in attempt.

however I get an error that says “compiler error encountered processing expression “successfullLogin = true”. Invalid L-value expression”

What does this mean am I using the activity incorrectly?

1 Like

The Element Exists activity passes True to a variable if the element was found, or False if the timeout period passed without the activity finding the element. The parameter should be a boolean type variable and nothing else. In your case, I’m guessing that’s successfullLogin.

You check what the value is after the activity has run and not within the output argument. This is done in an If statement after the Element Exists activity.

Welcome to the community!
You dont put the = inside there, you can put just the Boolean variable.

Hi
welcome to uipath community
as the image itself implies that the output property of an activity can take only a variable and not a expression
image
here it takes only BOOLEAN variable as input
so mention either like this successfulllogin
or
as Truesnipp

But it must be a boolean variable

Cheers @tsorrill

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