Invoke Code & Argument(Some one Please explain)

I have the following 3 scenario
1)


2)

3)

Output
1)
UiPath
2)
UiPath Tutorials
3)
UiPath TutorialsUiPath

can some one please explain this
I will be happy

thanks

@Akbar_Badhusa

  1. here you are not passing any value in …but only getting the value…so input = input which is empty + UiPath …so output is UiPath
  2. here you are passing the value in but bot getting anything out …so input variable is not modified.so UiPath tutorial
  3. here you are passing value in and modifying and passing it out as wel so input= UiPath tutorial+UiPath which is UiPath tutorialuipath

Hope this is clear

Cheers

1 Like

Hi @Akbar_Badhusa

The “Invoke Code” activity in UiPath allows you to execute custom code within a UiPath workflow. This activity is useful when you need to perform a specific task or operation that is not provided by the built-in UiPath activities.

The “Argument” input of the “Invoke Code” activity allows you to pass arguments or input values to the custom code being executed. These arguments can be used to customize the behavior of the code, or to provide it with the necessary data and information.