Uipath condition

Is nothing will check whether the value or variable along with this condition has null value or not
While isnot nothing will check whether the value or variable along with this condition has any value or not
To thats the difference buddy @balkishan

1 Like

Basically I want to understand this condition.

can you make me understand this condition.

here. NextPageExist is checking the page.
but what is this condition I am checking in Then & If part.

2 Likes

Well usually out_transactionitem is assigned with null value initially and then later after assigning any value to that it is validated later whether it has any value or not
So out_transactionitem is nothing means it is validated whether it has null value or not
And another if condition our_transactionitem isnot nothing means validating whether it has atleast any value in it or not

Basically is null or is nothing or isnot nothing is used to validate whether the Variable or argument under the condition

Cheers

2 Likes

Okay, understood bro.
Thanks :slight_smile:

@balkishan

If NextPageExists returs True it will go to THEN part and here we are assigning in_TransctionNumber to out_TransactionItem else we are assigning to Nothing to out_TransactionItem

And in next IF condition, we are checking whether it is isNot Nothing or not right. i.e. If we assign TransactionNumber in the above condition then this condition is true and will go to THEN part. If we assign Nothing in the above condition then this condition is false and will go to ELSE part.

1 Like

you want to say to assign the TransactionNumber here

@lakshman

you wan to say if we put the TransactionNumber in the yellow highlighted condiiton.
and what is the meaning of string.empty ? on right hand side.

@balkishan

we are assigning value to out_TransactionItem right in the above condition. That is what am telling.

If we assign in_TransactionNumber then second IF condition will return true.

image

If we assign Nothing then IF condition will return false.

image

you meant to 1 or 2 bro

This means we are assign empty string to it. And its like β€œβ€

@lakshman what is the meaning of string.empty on right side in assigned activity.
image

@balkishan

In First IF condition, we are assign value to out_TransactionItem variable.

And in Second IF condition we are checking whether out_TransactionItem variable contains any value or not like this: out_TransactionItem isNot Nothing

@lakshman bro if you see suppose the NextPageExist then it’s value is true then it will come the Then part right?
But in the next if condition it will convert the true into flase then it will go to the Else part.

Yah right its validated against a condition like the out_transactionitem should have no value
If this condition gets passed it will go to THEN part of if condition
Or
Will go to ELSE part
Cheers @balkishan

1 Like

@balkishan

First IF Condition:
Assume NextPageExists and it returns true and will go to THEN part and we are assigning in_TransactionNumber to out_TransactionItem. Till here are you clear right ?

Nothing = Null

IsNot Nothing = Not Null (i.e It contains some value)

Second IF Condition:

In this, we are checking out_TransactionItem isNot Nothing

Here, we assigned TransactionNumber to it. I.e. It contains some value. So, it will go to THEN part in this.

2 Likes

@balkishan

Yes it will come to THEN part and here we are assigning TransactionNumber to it right.

we are not converting True into False here. We are checking condition on what we assign in the above.Based on that it will go to corresponding part.

1 Like

Okay, understood bro
Now cleared the doubt.

3 Likes

Thanks to @lakshman and @Palaniyappan for your positive response :slight_smile:

1 Like

Great
Cheers @balkishan

2 Likes