setOutputInt()
From Hack Wars Wiki
| Function information for setOutputInt() | |
| Function | setOutputInt(int) |
| API | Challenge |
| Cost | $0 |
| Level | N/A |
| CPU Usage | 0 |
| Description | Passes the parameter (an integer or an integer variable) to the challenge system. This is one of the functions used to end challenges (along with setOutputString() and setOutputFloat()) and as such will only appear at the end of a challenge program. |
Example 1
If the challenge were to output the integer 5 the script would be:
setOutputInt(5); |
Example 2
If the challenge were to output an integer variable, containing the number 5, the script would be:
int i = 5; setOutputInt(i); |
