AnsweredAssumed Answered

Multiple if conditions in script?

Question asked by sherry199559 on Aug 30, 2017
Latest reply on Aug 30, 2017 by ninja

I'm trying to add a step in a script that's already working. Here is the original script:

# Auto Approve at 85%

If [Offers::Amount / BIN::Price .85]

   Set Field [Offers::Status; "Approved"]

Else If [Offers::Amount / BIN::Price < .5]

Set Field [Offers::Status; "Denied"]

Else

Send Email.....

 

Basically, I want that any offer below 50% of the price with a note, don't deny it. Instead, do the else part, which is sending email. And just like the original script, deny any offer below 50% of the price without any notes. I tried to use AND between two fields like this, it didn't work:

 

Else If [Offers::Amount / BIN::Price < .5 AND Offers::Note = ""]

Set Field [Offers::Status; "Denied"]

Else

Send Email.....

 

Anyone can help?

Outcomes