Skip to content

Conditionstatus

psiinon edited this page Apr 4, 2013 · 2 revisions

This conditional tests the status code of the last response.

Attributes

Name Format Description
code Long The status code to compare with
ifStatements Array The statements to run if the status code matches
elseStatements Array The statements to run if the status code does not match
index Integer The index of the statement in the script
elementType String Always ZestConditionStatusCode

JSON

An basic example:
{
  "code": 200,
  "ifStatements": [],
  "elseStatements": [],
  "index": 2,
  "elementType": "ZestConditionStatusCode"
}

See also

Clone this wiki locally