GetInputString()
From ElectronicWar
| Function information for getInputString() | |
| Function | getInputString() |
| Parameters | None |
| API | Challenge |
| Cost | $0 |
| Level | N/A |
| CPU Usage | 0 |
| Description | Returns the next string in an array of strings provided by the challenge system. This is one of the functions used to return challenge data (along with getInputFloat() and getInputInt()) and as such each instance of this function will return the next element in the challenge array. Because of this the challenge data is volatile and should be stored in a variable after each instance. |
[edit] Example
If the challenge input were an array containing ("Hello", "World"), and you had to output the concatenated text, the script would be:
string s1 = getInputString(); string s2 = getInputString(); setOutputString(s1 + s2);

