Page 1 of 1

What is the correct syntax for joining variables to insert in CONTENT =

Posted: Mon Apr 20, 2020 10:28 am
by lupobaho
Greetings!

Help me find the right and fast solution ...
Randomly I collect words from different columns of the file and need to be assembled into text for comment ...

Everything is going well ... separately, one word is entered normally, but I need to enter the whole text at a time. otherwise, if you write alternately by word, then the next word deletes the previous one.

I prescribed command in an experimental version, but every day it changes the content on the site and therefore does not fit.

As a result, I need to correctly write the syntax to collect all the variables and enter the whole text with the collected random words.

Here is the working code if you put one word in the last line:
error + = "TAG POS = 1 TYPE = TEXTAREA FORM = NAME: NoFormName ATTR = NAME: comment CONTENT =" + word1 + "";

but after assembling the variables together, you need to correctly specify the syntax so that the comment is fully registered with all the words on the site.

var randomName = Math.floor (Math.random () * 9 + 1); randomName;

var error = "CODE:";
error + = "SET! ERRORIGNORE YES" + "\ n";
error + = "SET! ERRORCONTINUE YES" + "\ n";
error + = "SET! REPLAYSPEED FAST" + "\ n";
error + = "SET! DATASOURCE_DELIMITER;" + "\ n";
error + = "CMDLINE! DATASOURCE D: \\ yandex_comment_text.csv" + "\ n";
error + = "SET! DATASOURCE_COLUMNS 14" + "\ n";
error + = "SET! LOOP 1" + "\ n";
error + = "SET! DATASOURCE_LINE" + randomName + "\ n";
error + = "ADD! EXTRACT {{! COL1}}";
iimPlay (error);

var word1 = iimGetLastExtract (1)
iimDisplay (word1);

var randomName = Math.floor (Math.random () * 5 + 1); randomName;

var error = "CODE:";
error + = "SET! ERRORIGNORE YES" + "\ n";
error + = "SET! ERRORCONTINUE YES" + "\ n";
error + = "SET! REPLAYSPEED FAST" + "\ n";
error + = "SET! DATASOURCE_DELIMITER;" + "\ n";
error + = "CMDLINE! DATASOURCE D: \\ yandex_comment_text.csv" + "\ n";
error + = "SET! DATASOURCE_COLUMNS 14" + "\ n";
error + = "SET! LOOP 1" + "\ n";
error + = "SET! DATASOURCE_LINE" + randomName + "\ n";
error + = "ADD! EXTRACT {{! COL2}}";
iimPlay (error);

var word2 = iimGetLastExtract (1)
iimDisplay (word2);

var randomName = Math.floor (Math.random () * 6 + 1); randomName;

var error = "CODE:";
error + = "SET! ERRORIGNORE YES" + "\ n";
error + = "SET! ERRORCONTINUE YES" + "\ n";
error + = "SET! REPLAYSPEED FAST" + "\ n";
error + = "SET! DATASOURCE_DELIMITER;" + "\ n";
error + = "CMDLINE! DATASOURCE D: \\ yandex_comment_text.csv" + "\ n";
error + = "SET! DATASOURCE_COLUMNS 14" + "\ n";
error + = "SET! LOOP 1" + "\ n";
error + = "SET! DATASOURCE_LINE" + randomName + "\ n";
error + = "ADD! EXTRACT {{! COL3}}";
iimPlay (error);

var word3 = iimGetLastExtract (1)
iimDisplay (word3);

var word4 = word1 + word2 + word3;
iimDisplay (word4);

var error = "CODE:";
error + = "SET! ERRORIGNORE YES" + "\ n";
error + = "SET! ERRORCONTINUE YES" + "\ n";
error + = "SET! REPLAYSPEED MEDIUM" + "\ n";
error + = "TAG POS = 1 TYPE = BUTTON ATTR = TXT: Add <SP> review" + "\ n";
error + = "TAG POS = 5 TYPE = DIV ATTR = CLASS: Rating-Star && TXT:" + "\ n";
error + = "TAG POS = 1 TYPE = TEXTAREA FORM = NAME: NoFormName ATTR = NAME: comment CONTENT =" + word4 + "";
iimPlay (error);

https://lucalussurioso.com/ - porn tube with tons leaked videos ;)