Adding a custom check

Hi, Im using gatling to test my site, mostly response times and status codes.

Now, Id like to push it a little, and use gatling to check the service’s response.

I have this api call that cannot repeat its answer for at least 10 consecutive calls, and Id like to check that in my gatling simulation too.

I was thinking of adding some extra information to the session variable, and then access it in the “check” for the api call, but I couldnt find a check for the session variable.
Something like this:

.check(status.is(200))
.check(somehow_check_if_the_session_variable_has_a_property)

What do you think, is this possible?, or maybe, is there a better way?

Thanks, Jc

sorry, Im using Gatling 2