If Statement for REST service array field
I am trying to set an if statement in a field that is being populated from a REST service. The REST field is part of an array, but I am only need the information changed from one field.
Here is the javascript. Where and how do I add it to the project?
var tt = service.responsefield;
var x="";
if (tt=7){
x="guest";
}
else
{
x="not";
}
Appery(labelfield).text(x);