How to identify certain keyword in aaname and to proceed only if the keyword exist?

i would like to identify a specific keyword from my elemental selector in aaname for example aaname will extract “afolder, Folder” i would want to check for “, Folder” so i can run through the bot to see if it should or should not proceed if “, Folder” is present cause im trying to sort the bot decision if it should only download the files but not the folders.

how can i get this outcome and what should i be using to verify ?

@damian_teo,

Welcome to the UiPath Community :tada:

You should be using Check App State activity for this. you can make the aaname field dynamic from Selector.

Thanks,
Ashok :slight_smile:

Hi @damian_teo

Try by using get attribute activity and get the aaname.
Use if condition
aanameValue.Contains(", Folder")

Hope it helps!!

1 Like

Hi @damian_teo

Try this

Get Attribute Activity:

  • Element: (Your element selector)
  • Attribute: "aaname"
  • Output: aanameValue

If Activity:

  • Condition: aanameValue.Contains(", Folder")
  • Then: (Add activities to execute if aanameValue contains ", Folder")
  • Else: (Add activities to execute if aanameValue does not contain ", Folder")

Regards,

1 Like

Hi @damian_teo

Try Below Flow

  1. Take Get Attribute Activity - Attribute name will be aaname and save to Output aanameValue
  2. Take If Activity - And check condition and do the needful task under Then or Else Block


Happy Automation :slight_smile:

1 Like

Use Element Exist Activity → Inside aaname: use “*” symbol to apply wildcard entry i.e *folder → make outputvar for Element Exist Activity → if outputvar=true then “Do your here”
By using this solution you dont need to use get attribute activity and your workflow will be short.

Happy Automation
Tukdi. :slight_smile:

This helps alot too esp the visual

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