# Demonstrates conditional assertions based on variable values.
$ REST_ORIGIN = https://lorem-api.com/api
---
Echo a request
$ USERNAME = [foo, bar]
POST {{ REST_ORIGIN }}/echo
~~~ application/json
{
"username" : "{{ USERNAME }}",
"role" : "user"
}
~~~
^ & status == 200
^ & body.role == "user"
[ USERNAME == "foo" ] ^ & body.username == "foo"
[ USERNAME == "bar" ] ^ & body.username == "bar"