We've been making changes to how we organize and display our docs. Our work isn't done but we'd love your feedback.

std.atoi()

Takes a string (which represents an integer) as an argument and returns its value. Behaves as if calling std.strtol() with a base of 10.

Format

INTEGER
std.atoi(STRING s)

Examples

1
2
3
if (std.atoi(req.http.X-Decimal) == 42) {
  set req.http.X-TheAnswer = "Found";
}