Legacy Dev Forum Posts

 View Only

Sign Up

IfElse AND statement help needed!

  • 1.  IfElse AND statement help needed!

    Posted 06-05-2025 19:12

    Frank | 2022-06-15 06:02:46 UTC | #1

    My script captures 2 types of call - RPV and nonRPV. When it's RPV call, my wrap up screen prompts the agent to tick 4 boxes. nonRPV - there are 3 boxes to tick.

    I'm trying to have the background container for the tick boxes show as RED until all ticks have been checked, then it turns GREEN.

    I've created dynamic variables {{Checks1-3}} and {{Checks1-4}} that evaluate to true when the respective tick boxes are ticked. My varaible that controls the background colour is Back_Col.

    I've tried variations of this: ifElse(equal({{isRPV}}, true) and equal({{Checks1-4}}, true) OR ifElse(equal({{Checks1-3}}, true),"#58EE3F", "#EA6642") but can't get it to work. I just don't know how to construct the statement and I'm getting close to guessing what might work! Any help would be appreciated, or if there is a better way to achieve the result I'm open to suggestions.

    Thanks


    Jerome.Saint-Marc | 2022-06-15 12:32:00 UTC | #2

    Hello,

    Something like this should work: ifElse((equal({{isRPV}}, true) and equal({{Checks1-4}}, true)) or (equal({{isRPV}}, false) and equal({{Checks1-3}}, true)),"#58EE3F", "#EA6642")

    Regards,


    Frank | 2022-07-06 00:24:37 UTC | #3

    Jerome.Saint-Marc, post:2, topic:15154
    ifElse((equal({{isRPV}}, true) and equal({{Checks1-4}}, true)) or (equal({{isRPV}}, false) and equal({{Checks1-3}}, true)),"#58EE3F", "#EA6642")

    Awesome! thanks so much, I appreciate you taking the time to post this. :raisedhandwithfingerssplayed:


    system | 2022-08-06 00:25:17 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 15154