At least one argument must be provided, and each argument must be a list with two elements.
The first element is a condition which evaluates to uint64, and the second is the body of the
condition, which will execute if that condition is true. All condition bodies must have the
same return type. During execution, each condition is tested in order, and the first
condition to evaluate to a true value will cause its associated body to execute and become
the value for this Cond expression. If no condition evaluates to a true value, the Cond
expression produces an error and the TEAL program terminates.
Example:
At least one argument must be provided, and each argument must be a list with two elements. The first element is a condition which evaluates to uint64, and the second is the body of the condition, which will execute if that condition is true. All condition bodies must have the same return type. During execution, each condition is tested in order, and the first condition to evaluate to a true value will cause its associated body to execute and become the value for this Cond expression. If no condition evaluates to a true value, the Cond expression produces an error and the TEAL program terminates. Example: