GetInputIntCount()

From ElectronicWar

Jump to: navigation, search
Function information for getInputIntCount()
Function getInputIntCount()
Parameters None
API Challenge
Cost $0
Level N/A
CPU Usage 0
Description Returns an integer representing the initial number of elements in an array of integers provided by the challenge system. This is one of a group of functions used to return challenge data (along with getInputStringCount() and getInputFloatCount()).


[edit] Example

If the challenge input was an array containing (4, 7, 4, 6), and you needed to output the number of elements in the array, you'd use the following code:

int i = getInputIntCount();
setOutputInt(i);

The output from this script would be 4.

Personal tools