Use Check app state to add variable

Dear All,

I need to use the check App state to determine the item is exists or not, but the item includes both fixed and variable wording. Can anyone advise how to resolve the variable error? Thank you.

f

@Evelyn_Lu,

Assign default value to the variable number in 'Variable` panel.

This should be for design time purpose only. After you select the right UI element, you can remove this default value.

Hi @Evelyn_Lu,

Whatever value you are trying to pass in that variable ‘number’, it needs to be assigned before this selector so a particular element can be reached.

For e.g if aaname is something like below for that selector:

Aaname=Empty container return for 7
Then you would need to define tha variable ‘number’ with value ‘7’

And if this is part of some loop, you will need to provide that pattern within the loop. Let’s say value if that number is getting incremented by 2. So you will provide below assign statement in the loop

Number =number +2

and after that aaname for your selector will automatically get changed to below:

Aaname= Empty container return for 9

Hope this helps.

Regards
Sonali

Hi @sonaliaggarwal47 , Thank you so much, the issue is fixed.

1 Like

I am glad it worked @Evelyn_Lu!

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