The Set response variable card is used to set one or more response variables for your users. The action returns variable value(s) to your frontend. The supported types are boolean, string, and integer.
After the card is executed, you can send the variable values directly to your frontend to use them outside of the Piano environment. To do that, a handler can be added to relevant pages:
tp.push(["addHandler", "setResponseVariable",
function(eventParams){
...
}
]);