getInputStringCount()
From Hack Wars Wiki
| Information for free function getInputStringCount() | |
| Function | getInputStringCount() |
| API | Challenge |
| Description | Returns an integer representing the initial number of elements in an array of strings provided by the challenge system. This is one of a group of functions used to return challenge data (along with getInputFloatCount() and getInputIntCount()). |
Example
If the challenge input was an array containing ("Hello", "World"), and you needed to output the number of elements in the array, you'd use the following script:
int i = getInputStringCount(); setOutputInt(i); |
The output from this script would be 2.
