Write in script action

Post your questions and help other users.

Moderator: Martin

Post Reply
Atbl
Posts: 14
Joined: 04 Dec 2015 16:26

Write in script action

Post by Atbl » 31 Jan 2016 17:40

Is there a way to write in script action by writing something in Input Dialogue action??

Actually want to add elements in script by using input dialogue.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Write in script action

Post by Martin » 01 Feb 2016 20:36

Hi,

I'm not sure if I understand your question properly but you could create a global variable with a list and add element to this list with a script:
Following script would add a new element to the list that contains the text of the value entered in the input dialog (when the input dialog was closed with OK):

Code: Select all

if (global_list==null)
{
    global_list = newList();
}

if (operation=="ok")
{
    addElement(global_list, value);
}
The first block checks if the list already exists, if not, it creates an empty list.

The second block checks if the input dialog was closed with OK, if yes, it adds the value to the list.

Regards,
Martin

Post Reply