How do I output variables?

Discuss RoboTask here

How do I output variables?

Postby Jaxom » Mon Apr 15, 2019 9:51 pm

The User's Guide, under "Debugging of the Task", says...

As a text you can output one or several variables. For example:
{MyVar1}
{MyVar2}

How do you "output" these variable values? With a series of "Put Text" / "Paste" actions into a text file or Word doc? Or is there a simpler way?

Also, if I search the forum for "variables" I get a message, "The following words in your search query were ignored because they are too common words: variables." And if I search for a phrase, "variable names" or "output variables" the word "variables" is ignored in the search. It would be nice if that were changed. Right now, it's often more productive to search the forum from Google than within the forum itself.

Thank you.
Jaxom
 
Posts: 1
Joined: Mon Apr 15, 2019 8:36 pm

Re: How do I output variables?

Postby Oleg » Tue Apr 16, 2019 10:11 am

The simplest way you can output variable into the task log
look at the Log message action.

Use {MyVar1} or {MyVar2} as message text. You can see these values in the task log. I think that this is best way.

You can use Show Message action to see values in the alert dialog

You can output values into the text file (Write Text File action)
Oleg Yershov
Oleg
Site Admin
 
Posts: 2398
Joined: Thu Jan 01, 1970 1:00 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 12 guests