Hey I would like to make a sentence a title with the combination of different words in the same text-box in every loop
example:
hey I am "John" I am "17" from "New York City"
I would like to change only "name" & "age" &"city" in a sentence
I would like to use {{!COL1}}{{!COL2}}{{!COL3}} with SET !DATASOURCE_LINE (different and randomly)
but the script can only allow same SET !DATASOURCE_LINE if I put {{!COL1}}{{!COL2}}{{!COL3}} together...
how can I achieve different sentence by using {{!COL1}}{{!COL2}}{{!COL3}} with respectively different DATASOURCE_LINE
I want make the combination of 5 names / 1-32 ages / 15 cities
I want {{!COL1}} with random !DATASOURCE_LINE {{!VAR1}}
I want {{!COL2}} with random !DATASOURCE_LINE {{!VAR2}}
I want {{!COL3}} with random !DATASOURCE_LINE {{!VAR3}}
but {{!COL1}}{{!COL2}}{{!COL3}} in the same CONTENT
any idea?
here is my code
Code: Select all
SET !VAR1 EVAL ("var min = 1; var max = 5;var randomNumber = Math. floor (Math. random () * (max - min + 1))+ min; randomNumber; ")
SET !VAR2 EVAL ("var min = 1; var max = 32;var randomNumber = Math. floor (Math. random () * (max - min + 1))+ min; randomNumber; ")
SET !VAR3 EVAL ("var min = 1; var max = 15;var randomNumber = Math. floor (Math. random () * (max - min + 1))+ min; randomNumber; ")
'標題
SET !DATASOURCE_LINE {{!VAR1}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:NoFormName ATTR=* CONTENT={{!COL1}}{{!COL2}}{{!COL3}}