How to create dynamic variables?


I want to create dynamic variables.

I want the bot to prompt the user the number of vehicles and then according to the number specified there should be equal number of prompts asking for the vehicle numbers.

What are the activities which would allow me to do the same ?


1 Like

Hi @abdul.hakeem.siraj
Use Input Dialog activity and pass the dynamic string variables

Ashwin S

1 Like

This can be done with a MESSAGE BOX activity that will show the user a prompt about number of vehicles
Which can be stored in a int32 variable named int_value

And for this

Use a while loop activity and mention the condition like this
Counter < int_value
Where counter is a variable of type int32 with default value as 1 defined in the variable panel
—now inside the loop use a INPUT DIALOG BOX activity where we can get the input from the user the vehicle number and can be stored in a variable of type string named str_output

—now this str_output can be used as a variable with dynamic value for each loop iteration
All the remaining steps that make use of this variable should be placed within the while loop

Hope this would help you
Cheers @abdul.hakeem.siraj