“And” and “Or” Operator Using in Custom Scripting

0

There are two custom script below. 1.script is working but the 2.script is not working. I could not find any operator symbol define in blog or resources. Could you please help about 2.script? I could not find a way to use “And” and “Or” operators together in surveygizmo. 

 

1.Script 

if (%%egit = 9 && (%%mesl = 13))
{sgapiSetValue(183,”A”);}

 

2.Script

if (%%egit = 9 && (%%mesl = 12 || %%mesl = 13))
{sgapiSetValue(183,”A”);}

Community Admin answered
    0

    @fulya : It looks like it’s your comparison operators; you’ll need to use == eg:

    if (%%egit == 9 && (%%mesl == 12 || %%mesl == 13))
    {sgapiSetValue(183,”A”);}

    I hope this helps!

    Bri Hillmer
    Documentation Coordinator
    SurveyGizmo Customer Experience Team

    Community Admin answered
      ×

      Login

      Question stats

      • Active
      • Views935 times
      • Answers1 answer
      • Followers1 follower