Variable to generate Filename

Discuss RoboTask here
Post Reply
gremlin
Posts: 36
Joined: Sun Jan 08, 2023 3:13 pm

Variable to generate Filename

Post by gremlin »

Hy,
if i generate a filename then it will be updated on the fly:
Snipaste_2023-06-08_09-38-11.png
Snipaste_2023-06-08_09-38-11.png (6.66 KiB) Viewed 1336 times
I helped myself by leaving out the seconds, but if the minute changes during execution, the variable changes and the file is no longer found at the end of the task.
Snipaste_2023-06-08_09-33-44.png
Snipaste_2023-06-08_09-33-44.png (6.46 KiB) Viewed 1336 times
I actually wanted to add a random function so that the file name is always different. but here the content is newly generated for each variable. Is it possible to somehow create the variable at the beginning of the task and then it remains the same throughout the procedure?
Thanks
steven
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Variable to generate Filename

Post by Oleg »

Turn this option ON
TurnThisOn.png
TurnThisOn.png (10.33 KiB) Viewed 1332 times
In this case RoboTask calculates the value before assigning it to variable

Otherwise, if it is unchecked then RoboTask calculates the value every time you use variable NewFileName1. And you can get another value every time.
Oleg Yershov
gremlin
Posts: 36
Joined: Sun Jan 08, 2023 3:13 pm

Re: Variable to generate Filename

Post by gremlin »

Ah,
ok thank you. Ill try.
Post Reply